|
4 | 4 | ### Get a repository's README
|
5 | 5 |
|
6 | 6 | ```php
|
7 |
| -$readme = $client->api('repo')->contents()->readme('knp-labs', 'php-github-api', $reference); |
| 7 | +$readme = $client->api('repo')->contents()->readme('KnpLabs', 'php-github-api', $reference); |
8 | 8 | ```
|
9 | 9 |
|
10 | 10 | ### Get information about a repository file or directory
|
11 | 11 |
|
12 | 12 | ```php
|
13 |
| -$fileInfo = $client->api('repo')->contents()->show('knp-labs', 'php-github-api', $path, $reference); |
| 13 | +$fileInfo = $client->api('repo')->contents()->show('KnpLabs', 'php-github-api', $path, $reference); |
14 | 14 | ```
|
15 | 15 |
|
16 | 16 | ### Check that a file or directory exists in the repository
|
17 | 17 | ```php
|
18 |
| -$fileExists = $client->api('repo')->contents()->exists('knp-labs', 'php-github-api', $path, $reference); |
| 18 | +$fileExists = $client->api('repo')->contents()->exists('KnpLabs', 'php-github-api', $path, $reference); |
19 | 19 | ```
|
20 | 20 |
|
21 | 21 | ### Create a file
|
22 | 22 | ```php
|
23 | 23 | $committer = array('name' => 'KnpLabs', 'email' => ' [email protected]');
|
24 | 24 |
|
25 |
| -$fileInfo = $client->api('repo')->contents()->create('knp-labs', 'php-github-api', $path, $content, $commitMessage, $branch, $committer); |
| 25 | +$fileInfo = $client->api('repo')->contents()->create('KnpLabs', 'php-github-api', $path, $content, $commitMessage, $branch, $committer); |
26 | 26 | ```
|
27 | 27 |
|
28 | 28 | ### Update a file
|
29 | 29 |
|
30 | 30 | ```php
|
31 | 31 | $committer = array('name' => 'KnpLabs', 'email' => ' [email protected]');
|
32 |
| -$oldFile = $client->api('repo')->contents()->show('knp-labs', 'php-github-api', $path, $branch); |
| 32 | +$oldFile = $client->api('repo')->contents()->show('KnpLabs', 'php-github-api', $path, $branch); |
33 | 33 |
|
34 |
| -$fileInfo = $client->api('repo')->contents()->update('knp-labs', 'php-github-api', $path, $content, $commitMessage, $oldFile['sha'], $branch, $committer); |
| 34 | +$fileInfo = $client->api('repo')->contents()->update('KnpLabs', 'php-github-api', $path, $content, $commitMessage, $oldFile['sha'], $branch, $committer); |
35 | 35 | ```
|
36 | 36 |
|
37 | 37 | ### Remove a file
|
38 | 38 |
|
39 | 39 | ```php
|
40 | 40 | $committer = array('name' => 'KnpLabs', 'email' => ' [email protected]');
|
41 |
| -$oldFile = $client->api('repo')->contents()->show('knp-labs', 'php-github-api', $path, $branch); |
| 41 | +$oldFile = $client->api('repo')->contents()->show('KnpLabs', 'php-github-api', $path, $branch); |
42 | 42 |
|
43 |
| -$fileInfo = $client->api('repo')->contents()->rm('knp-labs', 'php-github-api', $path, $commitMessage, $oldFile['sha'], $branch, $committer); |
| 43 | +$fileInfo = $client->api('repo')->contents()->rm('KnpLabs', 'php-github-api', $path, $commitMessage, $oldFile['sha'], $branch, $committer); |
44 | 44 | ```
|
45 | 45 |
|
46 | 46 | ### Get repository archive
|
47 | 47 |
|
48 | 48 | ```php
|
49 |
| -$archive = $client->api('repo')->contents()->archive('knp-labs', 'php-github-api', $format, $reference); |
| 49 | +$archive = $client->api('repo')->contents()->archive('KnpLabs', 'php-github-api', $format, $reference); |
50 | 50 | ```
|
51 | 51 |
|
52 | 52 | ### Download a file
|
53 | 53 |
|
54 | 54 | ```php
|
55 |
| -$fileContent = $client->api('repo')->contents()->download('knp-labs', 'php-github-api', $path, $reference); |
| 55 | +$fileContent = $client->api('repo')->contents()->download('KnpLabs', 'php-github-api', $path, $reference); |
56 | 56 | ```
|
0 commit comments