Skip to content

Commit

Permalink
updated readme (usage)
Browse files Browse the repository at this point in the history
  • Loading branch information
Syl committed May 22, 2014
1 parent aa88406 commit bbaf97b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ require_once './vendor/autoload.php';

## Usage

```php
// Template
$request = new \sylouuu\Curl\Method( string $url [, array $options ] );
```

Methods are: `Get`, `Head`, `Options`, `Post`, `Put`, `Patch` and `Delete`.

Basic case:

```php
// Create a request
$request = new \sylouuu\Curl\Get('http://domain.com');
Expand Down Expand Up @@ -84,8 +93,6 @@ $request->getCurlInfo(CURLINFO_SOMETHING);
$request->close();
```

As `Get`, here are the HTTP supported verbs: `Head`, `Options`, `Post`, `Put`, `Patch` and `Delete`.

## Tests

On project directory:
Expand Down

0 comments on commit bbaf97b

Please sign in to comment.