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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package strapi-php-client

Strapi PHP Client library

Latest Version on Packagist Test Status Total Downloads

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

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

PHP Build Version
Package Version
Requires php Version ^8.1
ext-json Version *
php-http/discovery Version ^1.14
php-http/httplug Version ^2.3
php-http/client-common Version ^2.6
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mbvienasbaitas/strapi-php-client contains the following files

Loading the files please wait ....