Skip to content

Commit 327bcaf

Browse files
committed
Updated PhpDocs. Added library documentation. Style-related code changes.
1 parent 936e242 commit 327bcaf

18 files changed

+6028
-1433
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
build/
2+
docs/phpdocs
23

34
# Composer
45
vendor/

README.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@
66

77
This library provides classes implementing basic REST clients based on PHP's cURL extension. Two client classes are made available:
88

9-
- **RestClient** - a class for executing RESTful service calls.
10-
- **RestMultiClient** - a class which extends RestClient to provide curl_multi capabilities to allow multiple RESTful calls to be made in parallel.
9+
- [RestClient](docs/MikeBrant-RestClientLib-RestClient.md) - a class for executing RESTful service calls.
10+
- [RestMultiClient](docs/MikeBrant-RestClientLib-RestMultiClient.md) - a class which extends RestClient to provide
11+
curl_multi capabilities to allow multiple RESTful calls to be made in parallel.
1112

1213
Additionally, this library provides classes which wrap curl responses within object oriented interface:
13-
- **CurlHttpResponse** - a class which encapsulates an HTTP response received via cURL into a class wrapper.
14-
- **CurlMultiHttpResponse** - a class which represents a collection of CurlHttpRepsonse objects as returned from multiple parallel cURL calls.
14+
- [CurlHttpResponse](docs/MikeBrant-RestClientLib-CurlHttpResponse.md) - a class which encapsulates an HTTP response
15+
received via cURL into a class wrapper.
16+
- [CurlMultiHttpResponse](docs/MikeBrant-RestClientLib-CurlMultiHttpResponse.md) - a class which represents a collection of
17+
CurlHttpRepsonse objects as returned from multiple parallel cURL calls.
1518

1619
These classes support:
1720
- HTTP actions - GET, POST, PUT, DELETE, and HEAD
@@ -30,10 +33,13 @@ This library is developed against PHP 7.1 and tested via Travis CI against:
3033
- PHP Nightly build
3134
- PHP HHVM (HipHop)
3235

33-
Please see Travis CI build status at: https://travis-ci.org/mikecbrant/php-rest-client
34-
Please see Code Climate code coverage and health informatoin at: https://codeclimate.com/github/mikecbrant/php-rest-client
36+
[Full library documentation](/docs/RestClientLib.md)
3537

36-
This library is available as as mikecbrant/php-rest-client omposer package at https://packagist.org/packages/mikecbrant/php-rest-client
38+
[Travis CI build status](https://travis-ci.org/mikecbrant/php-rest-client)
39+
40+
[Code Climate code coverage and health information](https://codeclimate.com/github/mikecbrant/php-rest-client)
41+
42+
[Packagist page](https://packagist.org/packages/mikecbrant/php-rest-client)
3743

3844
**Usage example:**
3945

bin/docgen

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
# Simple script to run phpdocumentor and phpdoc-md tools to generate markdown docs
3+
vendor/bin/phpdoc -d src/RestClientLib -t docs/phpdocs --template=xml
4+
vendor/bin/phpdocmd --index RestClientLib.md docs/phpdocs/structure.xml docs

composer.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
"require-dev": {
2828
"phpunit/phpunit": ">=5.7",
2929
"phpunit/php-code-coverage": "*",
30+
"phpdocumentor/phpdocumentor": "*",
31+
"evert/phpdoc-md" : "~0.2.0",
3032
"codeclimate/php-test-reporter": "dev-master"
3133
},
3234
"autoload": {

0 commit comments

Comments
 (0)