Skip to content

Commit f5134be

Browse files
committed
Add installation information to README
1 parent a4dcd7e commit f5134be

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
This is a renderer for rendering PHP view scripts into a PSR-7 Response object. It works well with Slim Framework 3.
44

5+
## Installation
6+
7+
Install with [Composer](http://getcomposer.org):
8+
9+
composer require slim/php-view
10+
511
## Usage With Slim 3
612

713
```php
@@ -32,4 +38,4 @@ $response = $phpView->render(new Response(), "/path/to/template.php", $yourData)
3238
## Exceptions
3339
`\RuntimeException` - if template does not exist
3440

35-
`\InvalidArgumentException` - if $data contains 'template'
41+
`\InvalidArgumentException` - if $data contains 'template'

0 commit comments

Comments
 (0)