Skip to content

Commit 20d0653

Browse files
committed
Updating docs
Signed-off-by: RJ Garcia <[email protected]>
1 parent befccd5 commit 20d0653

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,15 @@ Install via composer at `krak/php-inc`
1515
The main interface is the `bin/php-inc` command which allows you to run generate a php source file with all of your project's require's.
1616

1717
```
18-
./bin/php-inc {path-to-source} > src/inc.php
18+
./bin/php-inc php-inc:generate {path-to-source} > src/inc.php
19+
```
20+
21+
For example, running the command with the path to this projects `src` dir would generate this output:
22+
23+
```php
24+
<?php
25+
26+
require_once __DIR__ . '/php-inc.php';
1927
```
2028

2129
You may want to make sure your `inc.php` file (or whatever you decide to name it) is ignored by version control, and then generate the file when you build your project.

0 commit comments

Comments
 (0)