From e9a8a8d755eda00e77903ef9257be34d8e8dcad3 Mon Sep 17 00:00:00 2001 From: Russell Horton Date: Mon, 10 Sep 2012 01:53:49 -0700 Subject: [PATCH] add readme to PHP sample app --- samples/petstore/php/README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 samples/petstore/php/README.md diff --git a/samples/petstore/php/README.md b/samples/petstore/php/README.md new file mode 100644 index 00000000000..144868f0651 --- /dev/null +++ b/samples/petstore/php/README.md @@ -0,0 +1,20 @@ +# Sample Petstore PHP application + +Here's a PHP 5 [Swagger](http://swagger.wordnik.com/) client for the Petstore +sample application. See the interactive Swagger documentation at +http://petstore.swagger.wordnik.com/ for more information on this +demonstration API. + +The client contained in ```petstore``` was generated using this +```swagger-codegen``` project, with the following command: + + ./bin/runscala.sh com.wordnik.swagger.codegen.BasicPHPGenerator http://petstore.swagger.wordnik.com/api/resources.json special-key + +To run the tests, you will need +[PHPUnit](https://github.com/sebastianbergmann/phpunit) installed on your +system. With the ```phpunit``` command in your path, run the tests for each +resource as follows: + + phpunit tests/PetApiTest.php + phpunit tests/StoreApiTest.php + phpunit tests/UserApiTest.php \ No newline at end of file