Skip to content

Commit f4e5b5a

Browse files
committed
Merge pull request ornicar#15 from pklaus/readme-navigation
Readme navigation
2 parents 856a330 + 8e255fe commit f4e5b5a

File tree

1 file changed

+40
-3
lines changed

1 file changed

+40
-3
lines changed

Diff for: README.markdown

+40-3
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,14 @@ Replace the `/path/to/lib/` path with the path you used for php-github-api insta
4545

4646
From this object, you can access to all GitHub apis, listed below.
4747

48+
<a name='nav'></a>
49+
## Navigation
50+
51+
[Users][] | [Issues][] | [Commits][] | [Objects][] | [Repos][] | [Pull Requests][] | [Request any Route][] | [Authentication & Security][] | [Customize php-github-api][] | [Run Test Suite][]
52+
53+
<a name='users'></a>
4854
## Users
55+
<a href='#nav' alt='Back to the navigation'>Go back to the Navigation</a>
4956

5057
Searching users, getting user information and managing authenticated user account information.
5158
Wrap [GitHub User API](http://develop.github.com/p/users.html).
@@ -144,7 +151,9 @@ Returns an array of the authenticated user emails. Requires authentication.
144151

145152
Return an array of the authenticated user emails. Requires authentication.
146153

154+
<a name='issues'></a>
147155
## Issues
156+
<a href='#nav' alt='Back to the navigation'>Go back to the Navigation</a>
148157

149158
Listing issues, searching, editing and closing your projects issues.
150159
Wrap [GitHub Issue API](http://develop.github.com/p/issues.html).
@@ -265,7 +274,9 @@ Returns an array of the issue labels.
265274

266275
Returns an array of issues matching the given label.
267276

277+
<a name='commits'></a>
268278
## Commits
279+
<a href='#nav' alt='Back to the navigation'>Go back to the Navigation</a>
269280

270281
Getting information on specific commits, the diffs they introduce, the files they've changed.
271282
Wrap [GitHub Commit API](http://develop.github.com/p/commits.html).
@@ -294,7 +305,9 @@ Returns an array of commits.
294305

295306
Returns a single commit.
296307

308+
<a name='objects'></a>
297309
## Objects
310+
<a href='#nav' alt='Back to the navigation'>Go back to the Navigation</a>
298311

299312
Getting full versions of specific files and trees in your Git repositories. Wrap [GitHub objects API](http://develop.github.com/p/objects.html).
300313

@@ -331,7 +344,9 @@ Returns array of blob informations.
331344
The last parameter can be either a blob SHA1, a tree SHA1 or a commit SHA1.
332345
Returns the raw text content of the object.
333346

347+
<a name='repos'></a>
334348
## Repos
349+
<a href='#nav' alt='Back to the navigation'>Go back to the Navigation</a>
335350

336351
Searching repositories, getting repository information and managing repository information for authenticated users.
337352
Wrap [GitHub Repo API](http://develop.github.com/p/repo.html). All methods are described on that page.
@@ -547,7 +562,9 @@ To include non GitHub users, add a third parameter to true:
547562

548563

549564

550-
## Pull requests
565+
<a name='pull_requests'></a>
566+
## Pull Requests
567+
<a href='#nav' alt='Back to the navigation'>Go back to the Navigation</a>
551568

552569
Lets you list pull requests for a given repository, list one pull request in particular along with its discussion, and create a pull-request.
553570
Wraps [GitHub Pull Request API](http://develop.github.com/p/pulls.html), still tagged **BETA**. All methods are described there.
@@ -616,7 +633,9 @@ Requires authentication. The issue ID is provided instead of title and body.
616633
This returns the details of the pull request.
617634

618635

619-
## Request any route
636+
<a name='request_any_route'></a>
637+
## Request any Route
638+
<a href='#nav' alt='Back to the navigation'>Go back to the Navigation</a>
620639

621640
The method you need does not exist yet?
622641
You can access any GitHub route by using the "get" and "post" methods.
@@ -630,7 +649,9 @@ Returns an array describing the php-github-api repository.
630649

631650
See all GitHub API routes: [http://develop.github.com/](http://develop.github.com/)
632651

652+
<a name='authentication_and_security'></a>
633653
## Authentication & Security
654+
<a href='#nav' alt='Back to the navigation'>Go back to the Navigation</a>
634655

635656
Most GitHub services do not require authentication, but some do. For example the methods that allow you to change properties on Repositories and some others. Therefore this step is facultative.
636657

@@ -665,7 +686,9 @@ If you want to stop new requests from being authenticated, you can use the deAut
665686
$github->deAuthenticate();
666687
```
667688

689+
<a name='customize'></a>
668690
## Customize php-github-api
691+
<a href='#nav' alt='Back to the navigation'>Go back to the Navigation</a>
669692

670693
The library is highly configurable and extensible thanks to dependency injection.
671694

@@ -724,7 +747,9 @@ For example, to replace the user API:
724747
$github->setApi('user', new MyGithubApiUser($github));
725748
```
726749

727-
## Run test suite
750+
<a name='run_test_suite'></a>
751+
## Run Test Suite
752+
<a href='#nav' alt='Back to the navigation'>Go back to the Navigation</a>
728753

729754
The code is unit tested. To run tests on your machine, from a CLI, run
730755

@@ -742,3 +767,15 @@ This library borrows ideas, code and tests from [phptwitterbot](http://code.goog
742767
- Thanks to [Nicolas Pastorino](http://github.com/jeanvoye) for his contribution on the Pull Request API.
743768

744769
Thanks to GitHub for the high quality API and documentation.
770+
771+
772+
[Users]: #users
773+
[Issues]: #issues
774+
[Commits]: #commits
775+
[Objects]: #objects
776+
[Repos]: #repos
777+
[Pull Requests]: #pull_requests
778+
[Request any Route]: #request_any_route
779+
[Authentication & Security]: #authentication_and_security
780+
[Customize php-github-api]: #customize
781+
[Run Test Suite]: #run_test_suite

0 commit comments

Comments
 (0)