Skip to content

Commit

Permalink
Style the README's text a little better with wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
rmccue committed Feb 8, 2012
1 parent 8db36ab commit 6bd649c
Showing 1 changed file with 21 additions and 11 deletions.
32 changes: 21 additions & 11 deletions README.md
Expand Up @@ -52,38 +52,48 @@ Installation
------------

### Install with Composer
If you're using [Composer](https://github.com/composer/composer) to manage dependencies, you can add Requests with it.
If you're using [Composer](https://github.com/composer/composer) to manage
dependencies, you can add Requests with it.

{
"require": {
"rmccue/requests": ">=1.0"
}
}
{
"require": {
"rmccue/requests": ">=1.0"
}
}

### Install source from GitHub
To install the source code:

git clone git://github.com/rmccue/Requests.git
$ git clone git://github.com/rmccue/Requests.git

And include it in your scripts:

require_once '/path/to/Requests/library/Requests.php';
require_once '/path/to/Requests/library/Requests.php';

You'll probably also want to register an autoloader:

Requests::register_autoloader();


### Install source from zip/tarball
Alternatively, you can fetch a [tarball](https://github.com/rmccue/Requests/tarball/master) or [zipball](https://github.com/rmccue/Requests/zipball/master):
Alternatively, you can fetch a [tarball][] or [zipball][]:

$ curl https://github.com/rmccue/Requests/tarball/master | tar xzv
(or)
$ wget https://github.com/rmccue/Requests/tarball/master -O - | tar xzv

[tarball]: https://github.com/rmccue/Requests/tarball/master
[zipball]: https://github.com/rmccue/Requests/zipball/master


### Using a Class Loader
If you're using a class loader (e.g., [Symfony Class Loader](https://github.com/symfony/ClassLoader)) for [PSR-0](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md)-style class loading:
If you're using a class loader (e.g., [Symfony Class Loader][]) for
[PSR-0][]-style class loading:

$loader->registerNamespace('Requests', 'path/to/vendor/Requests/library');

$loader->registerNamespace('Requests', 'path/to/vendor/Requests/library');
[Symfony Class Loader]: https://github.com/symfony/ClassLoader
[PSR-0]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md


Documentation
Expand Down

0 comments on commit 6bd649c

Please sign in to comment.