Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
[PIO-163] Stack upgrade and doc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dszeto committed Sep 11, 2018
1 parent 4f3a6e9 commit 2b99dcc
Show file tree
Hide file tree
Showing 6 changed files with 3,603 additions and 18 deletions.
1 change: 0 additions & 1 deletion .gitignore
@@ -1,6 +1,5 @@
build
composer.phar
composer.lock
docs
vendor
.idea
3 changes: 2 additions & 1 deletion .travis.yml
@@ -1,8 +1,9 @@
language: php
php:
- 7.2
- 7.1
- 7.0
- 5.6
- 5.5
before_script:
- pear channel-discover pear.phing.info
- pear install phing/phing
Expand Down
23 changes: 14 additions & 9 deletions README.md
@@ -1,11 +1,11 @@
# Apache PredictionIO PHP SDK


[![Build Status](https://travis-ci.org/apache/incubator-predictionio-sdk-php.svg?branch=develop)](https://travis-ci.org/apache/incubator-predictionio-sdk-php)
[![Build
Status](https://travis-ci.org/apache/predictionio-sdk-php.svg?branch=develop)](https://travis-ci.org/apache/predictionio-sdk-php)

## Prerequisites

* PHP 5.4+ (http://php.net/)
* PHP 5.6+ (http://php.net/)
* PHP: cURL (http://php.net/manual/en/book.curl.php)
* Phing (http://www.phing.info/)
* ApiGen (http://apigen.org/)
Expand All @@ -14,9 +14,11 @@ Note: This SDK only supports Apache PredictionIO version 0.8.2 or higher.

## Getting Started

The easiest way to install PredictionIO PHP client is to use [Composer](http://getcomposer.org/).
The easiest way to install PredictionIO PHP client is to use
[Composer](http://getcomposer.org/).

1. `predictionio` is available on [Packagist](https://packagist.org) and can be installed using [Composer](https://getcomposer.org/):
1. `predictionio` is available on [Packagist](https://packagist.org) and can be
installed using [Composer](https://getcomposer.org/):

composer require predictionio/predictionio

Expand Down Expand Up @@ -75,19 +77,22 @@ print_r($response);

## Bugs and Feature Requests

Use [Apache JIRA](https://issues.apache.org/jira/browse/PIO) to report bugs or request new features.
Use [Apache JIRA](https://issues.apache.org/jira/browse/PIO) to report bugs or
request new features.

## Community

Keep track of development and community news.

* Subscribe to the user mailing list <mailto:user-subscribe@predictionio.apache.org>
and the dev mailing list <mailto:dev-subscribe@predictionio.apache.org>
* Subscribe to the [user mailing
list](mailto:user-subscribe@predictionio.apache.org) and the [dev mailing
list](mailto:dev-subscribe@predictionio.apache.org).
* Follow [@PredictionIO](https://twitter.com/PredictionIO) on Twitter.

## Contributing

Read the [Contribute Code](http://predictionio.apache.org/community/contribute-code/) page.
Read the [Contribute
Code](http://predictionio.apache.org/community/contribute-code/) page.

## License

Expand Down
12 changes: 9 additions & 3 deletions build.xml
Expand Up @@ -10,8 +10,10 @@
</then>
<else>
<echo message="Installing composer" />
<exec command="curl -s http://getcomposer.org/installer | php" passthru="true" />
<exec command="php composer.phar install --dev" passthru="true" />
<exec command="php -r &quot;copy('https://getcomposer.org/installer', 'composer-setup.php');&quot;" passthru="true" />
<exec command="php -r &quot;if (hash_file('SHA384', 'composer-setup.php') === '544e09ee996cdf60ece3804abc52599c22b1f40f4323403c44d44fdfdd586475ca9813a858088ffbc1f233e9b180f061') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;&quot;" passthru="true" />
<exec command="php composer-setup.php" passthru="true" />
<exec command="php -r &quot;unlink('composer-setup.php');&quot;" passthru="true" />
</else>
</if>
</target>
Expand All @@ -26,7 +28,11 @@
</target>

<target name="apigen">
<exec command="apigen -s src -d docs --title 'PredictionIO API PHP Client'" passthru="true" />
<exec command="vendor/apigen/apigen/bin/apigen generate -s src -d docs --title 'PredictionIO API PHP Client'" passthru="true" />
</target>

<target name="test">
<exec command="vendor/phpunit/phpunit/phpunit" passthru="true" />
</target>

</project>
9 changes: 5 additions & 4 deletions composer.json
Expand Up @@ -15,17 +15,18 @@
"authors": [
{
"name": "Apache PredictionIO",
"email": "user@predictionio.apache.org",
"email": "dev@predictionio.apache.org",
"homepage": "http://predictionio.apache.org"
}
],
"require": {
"php": ">=5.5.0",
"php": ">=5.6.0",
"guzzlehttp/guzzle": "^6.1"
},
"require-dev": {
"symfony/class-loader": "~2.3",
"phpunit/phpunit": "^4.7"
"symfony/class-loader": "^2.3",
"phpunit/phpunit": "^4.7",
"apigen/apigen": "^4.1.2"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 2b99dcc

Please sign in to comment.