From e40bd962855ec0d7da6d33dbdd81016376f80d1c Mon Sep 17 00:00:00 2001 From: thefosk Date: Mon, 29 Apr 2013 11:18:37 -0700 Subject: [PATCH] better support without using composer --- README.md | 6 ++++++ lib/Unirest.php | 7 +++++++ lib/Unirest/HttpMethod.php | 2 -- lib/Unirest/HttpResponse.php | 2 -- lib/Unirest/Unirest.php | 2 -- prova.php | 4 ++++ 6 files changed, 17 insertions(+), 6 deletions(-) create mode 100644 lib/Unirest.php create mode 100644 prova.php diff --git a/README.md b/README.md index 7603270..fd3fa62 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,12 @@ And then run: php composer.phar install ``` +Include the library in your project with: + +```php +require 'vendor/autoload.php'; +```` + ### Creating Request So you're probably wondering how using Unirest makes creating requests in PHP easier, let's look at a working example: diff --git a/lib/Unirest.php b/lib/Unirest.php new file mode 100644 index 0000000..ca05faa --- /dev/null +++ b/lib/Unirest.php @@ -0,0 +1,7 @@ + \ No newline at end of file diff --git a/lib/Unirest/HttpMethod.php b/lib/Unirest/HttpMethod.php index 3ee119b..d2352d2 100644 --- a/lib/Unirest/HttpMethod.php +++ b/lib/Unirest/HttpMethod.php @@ -1,6 +1,4 @@