1. Go to this page and download the library: Download airmanbzh/pheign 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/ */
airmanbzh / pheign example snippets
namespace test;
use pheign\annotation\method\GET;
use pheign\annotation\Options;
use pheign\annotation\Pheign;
use pheign\annotation\Target;
class Github
{
/**
* @Pheign
*
* @GET
* @Target("/users/{owner}/repos")
*
* @Options(CURLOPT_SSL_VERIFYHOST=0, CURLOPT_SSL_VERIFYPEER=0)
*/
public function repositories($owner){}
/**
* @Pheign
*
* @GET
* @Target("/repos/{owner}/{repo}")
*
* @Options(CURLOPT_SSL_VERIFYHOST=0, CURLOPT_SSL_VERIFYPEER=0)
*/
public function repositoryInformations($owner, $repo){}
}