From bab885fb13ff0ffea0988197a7f1d7f08b36fb25 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..e66d342 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 file `RobotLoader.php`](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