diff --git a/README.md b/README.md index b5680bb..ab46594 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Or add the package to your `composer.json`. ``` "require": { - "meta-tech/pws-client" : "~1.3" + "meta-tech/pws-client" : "^1.3" } ``` @@ -50,7 +50,7 @@ if ($response->done) { } // post example -$client->post('/ws/person/222/update', [ 'firstname' => 'toto']); +$response = $client->post('/ws/person/222/update', [ 'firstname' => 'toto']); if ($response->done) { // do stuff } @@ -69,6 +69,9 @@ if ($response->done) { debug : 1 protocol : https:// hostname : pwsserver.docker +# ssl options +verifypeer : 0 +verifyhost : 0 # file storing the server 's session id - must be out of DocumentRoot and read/writable by server store : wsess login : test @@ -95,7 +98,7 @@ However, meta-tech always return this simple Json Structure : `{ done : boolean, msg : 'string contextual msg', data : whatever }` see [ meta-tech/pws-server ](https://github.com/meta-tech/pws-server) -and [ meta-tech/sile-core ](https://github.com/meta-tech/silex-core) +and [ meta-tech/silex-core ](https://github.com/meta-tech/silex-core) ### License diff --git a/composer.json b/composer.json index 218f921..f48f787 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,6 @@ }, "require" : { "php" : ">=5.4", - "symfony/yaml" : "^3.2", - "meta-tech/pws-auth" : "~2.1" + "meta-tech/pws-auth" : "^2.1" } } diff --git a/config/pwsclient.yml.dist b/config/pwsclient.yml.dist index 2ab45b3..43c6044 100644 --- a/config/pwsclient.yml.dist +++ b/config/pwsclient.yml.dist @@ -1,16 +1,16 @@ # pwsclient config # 0 : disable, 1 : verboose, 2 : most verboose -debug : 1 -protocol : https:// +debug : 2 +protocol : http:// hostname : pwsserver.docker verifypeer : 0 verifyhost : 0 # file storing the server 's session id - must be out of DocumentRoot and read/writable by server store : wsess -login : test -password : test -key : test +login : dev +password : foo +key : ed830045da9861d29c46f36b4f4b1a4d4b223408667c52428370e51b615e8769 # 0 : display cli, 1 : display html html_output : 0 # http authentication