Download the PHP package svnwa/laravel-strapi without Composer

On this page you can find all versions of the php package svnwa/laravel-strapi. 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 laravel-strapi

Laravel Strapi

Latest Version on Packagist Total Downloads

This package provides an implementation to consume the Strapi REST API.

The current implementation only supports fetching data from Strapi since I personally didn't have a use case to write data to it via API yet.

Currently supports Strapi v4 which is a bit different from the preceding v3 REST API.


Installation

1. Installation via Composer
2. Publishing the the config file:
3. Editing the the .env file:

The is optional.[^1]

The default value is defined in the config file at 3600 seconds (1 hour).

[^1]: Time is in seconds.

4. Optional "cache reset" route

This package also provides an optional route to automatically reset the cache with a Webhook from within Strapi e.g. after update or creation of a resource. The route can be activated in the config file. Just set the value to true:


Usage

This package attemps to make use of a fluent api similar to Laravels Eloquent:

Examples

  1. Get a list of entries
  2. Get an entry
  3. Parameters

Using Strapis basic API Parameters:

Populate with wildcard. If no parameter is given to the populate() method it defauls to using the wildcard operator:

or:

Tip: Strapi offers deep population for e.g. nested components and does not populate them by default. Even not with the wildcard *

Queries can accept a publicationState parameter to fetch entries based on their publication state:

License

MIT. Please see the license file for more information.


All versions of laravel-strapi with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version >=9
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 svnwa/laravel-strapi contains the following files

Loading the files please wait ....