Download the PHP package mbvienasbaitas/strapi-php-client without Composer
On this page you can find all versions of the php package mbvienasbaitas/strapi-php-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mbvienasbaitas/strapi-php-client
More information about mbvienasbaitas/strapi-php-client
Files in mbvienasbaitas/strapi-php-client
Package strapi-php-client
Short Description PHP Client wrapper for Strapi API.
License MIT
Informations about the package strapi-php-client
Strapi PHP Client library
Installation
To get started, simply require the project using Composer.
You will also need to install packages that "provide" psr/http-client-implementation
and psr/http-factory-implementation
.
A list with compatible HTTP clients and client adapters can be found at php-http.org.
If you don't know which HTTP client to use, we recommend using Guzzle 7:
Usage
More usage examples can be found in examples folder.
Available request options
Each request can accept multiple options. Here is a list of all available options.
Option | Description |
---|---|
OptionFields | Defines which fields to load. |
OptionFilters | Applies specified filters. |
OptionId | Sets active resource ID. |
OptionJsonBody | Ads application/json body from a given array. |
OptionLocale | Sets resource locale. |
OptionPaginationOffset | Offset based pagination. |
OptionPaginationPaged | Page based pagination. |
OptionPopulateDeep | Sets populate option, requires strapi-plugin-populate-deep plugin to be installed in strapi build. |
OptionPopulateNested | Defines which relations to load. |
OptionPopulateWildcard | Loads all first level relations. |
OptionPublicationStateLive | Set publication state to live . |
OptionPublicationStatePreview | Set publication state to preview . |
OptionSort | Define sorting options. |
OptionSortAsc | Set single field sort in ascending order. |
OptionSortDesc | Set single field sort in descending order. |
OptionStreamBody | Set custom stream body, mainly used for media uploads. |
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
- Edvinas Kručas
- All Contributors
This package structure was inspired by meilisearch-php package.
Alternatives
License
The MIT License (MIT). Please see License File for more information.
All versions of strapi-php-client with dependencies
ext-json Version *
php-http/discovery Version ^1.14
php-http/httplug Version ^2.3
php-http/client-common Version ^2.6