From 169daa32470ac5a3edfd0ed9903a7dff0f4b6462 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Tue, 26 Sep 2023 20:20:50 +0200 Subject: [PATCH] readme: info about standalone usage --- readme.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 1dcd844..ea2945d 100644 --- a/readme.md +++ b/readme.md @@ -41,7 +41,16 @@ Thank you! Installation ------------ -The recommended way to install is via Composer: +You can download RobotLoader as a [single standalone PHP file](https://github.com/nette/robot-loader/raw/standalone/src/RobotLoader/RobotLoader.php), which you can include in your script using `require`, and immediately have convenient autoloading for your entire application: + +```php +require '/path/to/RobotLoader.php'; + +$loader = new Nette\Loaders\RobotLoader; +// ... +``` + +If you are building an application that uses Composer, you can install it through it: ```shell composer require nette/robot-loader