1. Go to this page and download the library: Download atelierspierrot/webservices library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
atelierspierrot / webservices example snippets
array(
// the HTTP accessible temporary files
'tmp_directory' => __DIR__.'/tmp',
// the HTTP NON-accessible temporary files, must be out of your document root
'var_directory' => __DIR__.'/../var',
// the log files, must be out of your document root (here in 'var/')
'log_directory' => __DIR__.'/../var/logs',
// enable full logging
'enable_logging' => true,
// enable the URL rewriting : "http://.../var/val" = "http://.../?var=val"
'enable_url_rewrite' => true,
// write your custom controllers here like "route => classname" pairs
// then you can call "http://.../?ws=route" to access them
'controllers_mapping' => array(
),
)
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.