1. Go to this page and download the library: Download kazakevic/strapi-wrapper 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/ */
kazakevic / strapi-wrapper example snippets
$httpClient = new Client(); //Guzzle http client, but can be any suitable
$strapiClient = new StrapiClient(
$httpClient,
'token',
'http://localhost:1338'
);
$response = $strapiClient->getItems(
'item-identifier',
new PageFilter(100),
new SortFilter('id', SortOrder::DESC)
);