Skip to content

Commit 1639ca0

Browse files
committed
Update readme, and swap files to gitignore
1 parent 8e3569d commit 1639ca0

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ vendor/*
33
.buildpath
44
.project
55
.settings/*
6-
composer.lock
6+
composer.lock
7+
*~

README.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,28 @@ PHP Curl Class is an object-oriented wrapper of the PHP cURL extension.
55
### Quick Start and Examples
66

77
```php
8-
require 'Curl.class.php';
98

10-
$curl = new Curl();
9+
$curl = new Curl\Curl();
1110
$curl->get('http://www.example.com/');
1211
```
1312

1413
```php
15-
$curl = new Curl();
14+
$curl = new Curl\Curl();
1615
$curl->get('http://www.example.com/search', array(
1716
'q' => 'keyword',
1817
));
1918
```
2019

2120
```php
22-
$curl = new Curl();
21+
$curl = new Curl\Curl();
2322
$curl->post('http://www.example.com/login/', array(
2423
'username' => 'myusername',
2524
'password' => 'mypassword',
2625
));
2726
```
2827

2928
```php
30-
$curl = new Curl();
29+
$curl = new Curl\Curl();
3130
$curl->setBasicAuthentication('username', 'password');
3231
$curl->setUserAgent('');
3332
$curl->setReferrer('');
@@ -47,29 +46,29 @@ var_dump($curl->response_headers);
4746
```
4847

4948
```php
50-
$curl = new Curl();
49+
$curl = new Curl\Curl();
5150
$curl->setopt(CURLOPT_RETURNTRANSFER, TRUE);
5251
$curl->setopt(CURLOPT_SSL_VERIFYPEER, FALSE);
5352
$curl->get('https://encrypted.example.com/');
5453
```
5554

5655
```php
57-
$curl = new Curl();
56+
$curl = new Curl\Curl();
5857
$curl->put('http://api.example.com/user/', array(
5958
'first_name' => 'Zach',
6059
'last_name' => 'Borboa',
6160
));
6261
```
6362

6463
```php
65-
$curl = new Curl();
64+
$curl = new Curl\Curl();
6665
$curl->patch('http://api.example.com/profile/', array(
6766
'image' => '@path/to/file.jpg',
6867
));
6968
```
7069

7170
```php
72-
$curl = new Curl();
71+
$curl = new Curl\Curl();
7372
$curl->delete('http://api.example.com/user/', array(
7473
'id' => '1234',
7574
));

0 commit comments

Comments
 (0)