Download the PHP package guardian360/repository without Composer

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

Guardian360 Repository

Build Status Coverage Status

A base repository for Eloquent models.

Requirements

Installation

Install via composer.

Usage

First, you should create your repository class. You can do this manually or by using Artisan by doing $ php artisan make:repository UserRepository. Your repository must extend \Guardian360\Repository\AbstractRepository and implement the model() method.

By implementing the model() method, you are telling the repository what model class you want to use. Next, in our case, it seems only logical to have a User model. Why don't we create one?

Finally, you may use the repository in your controller, or anywhere else really.

Examples

Fetch a list of all users.

Find a user.

Find a user by an attribute.

Find all users by an attribute.

Create a new user.

Update an existing user.

Delete an existing user.

Specifications

Specifications allow you to apply very specific conditions to the repository's query. You may use Artisan to generate a Specification class for you, using $ php artisan make:specification UserIsAdmin, or you may do so manually. Your specification must satisfy the \Guardian360\Repository\Contracts\SpecificationContract contract.

Then, you may push the Specification to the repository in your controller. You may use as many Specifications as you like.

Credits

This package is inspired by the following awesome packages:

Thanks guys, I could not have done this without you. :)


All versions of repository with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0|^8.0
illuminate/console Version >=5.5
illuminate/database Version >=5.5
illuminate/pagination Version >=5.5
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 guardian360/repository contains the following files

Loading the files please wait ....