Skip to content

Commit

Permalink
readme: info about standalone usage
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Sep 26, 2023
1 parent 3a947ef commit 169daa3
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 169daa3

Please sign in to comment.