Download the PHP package aros/omnifetch-lumen without Composer

On this page you can find all versions of the php package aros/omnifetch-lumen. 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 omnifetch-lumen

OmniFetch for Lumen

OmniFetch for Lumen is a useful library which makes fetch API endpoints easier to set up and flexible enough for different situations. The library allows for easy modification of the response data set on the fly by passing in query parameters as part of the request. These modifications can range from apply filters, embedding related data and pagination to aggregating data with group bys.

Total Downloads

Installation

Dependencies

Main Functionalities

OmniFetch has only two methods that can be used. They are the following:

The builder being used should be created using a model (i.e. primary model). e.g. Author::query()

Parameter Options

The OmniFetch::getSingle and OmniFetch::paginate both require the $params in their arguments which is an associative array of options.

Usage

This can be explained with an example. In this example, getOnePost and getAllPosts endpoints are created. The models (or entities) used are:

For this example, Post is the primary model while Author and Publisher are related models.

Note: For the library to be very effective, the model relations should be well set up

First, lets set up the models (assuming DB migrations and other project prerequisites have been done):

Publisher Model

Author Model

Post Model


Secondly, lets set up the Controller


Finally, add the routes (and we are done!)


Request Examples with Response


All versions of omnifetch-lumen with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
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 aros/omnifetch-lumen contains the following files

Loading the files please wait ....