Skip to content
This repository was archived by the owner on Jan 4, 2020. It is now read-only.

Commit e1f9c25

Browse files
committedMar 14, 2014
Update README.md with composer install instructions
1 parent c51e767 commit e1f9c25

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed
 

‎README.md

+20-3
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,26 @@ The most significant enhancement in version 3.x is the integration with Bootstra
1212

1313
## System Requirements
1414

15-
PHP 5 >= 5.3
15+
PHP >= 5.3
1616

1717
## Installation Instructions
1818

19-
Before writing any code, you'll first need to download the latest version of PFBC and upload the PFBC directory within the document root of your web server. The other files/directories outside of the PFBC folder that are included in the download are provided only for instruction and can be omitted from your production environment.
19+
Composer is the easiest way to manage dependencies in your project. Create a file named composer.json with the following:
20+
21+
```json
22+
{
23+
"require": {
24+
"pfbc/pfbc": "3.1"
25+
}
26+
}
27+
```
28+
29+
And run Composer to install PFBC:
30+
31+
```bash
32+
$ curl -s http://getcomposer.org/installer | php
33+
$ composer.phar install
34+
```
2035

2136
## Examples/Tutorials
2237

@@ -32,6 +47,8 @@ The links provided below are meant to demonstrate the key features included in t
3247

3348
```php
3449
<?php
50+
require 'vendor/autoload.php';
51+
3552
//PFBC 3.x PHP 5 >= 5.3
3653
session_start();
3754
include($_SERVER["DOCUMENT_ROOT"] . "/PFBC/Form.php");
@@ -45,4 +62,4 @@ $form->addElement(new PFBC\Element\Select("My Select:", "MySelect", array(
4562
$form->addElement(new PFBC\Element\Button);
4663
$form->render();
4764
?>
48-
```
65+
```

0 commit comments

Comments
 (0)
This repository has been archived.