PHP Classes

Laravel Repository Package: Access repository objects that match the criteria

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 35 All time: 11,005 This week: 77Up
Version License PHP version Categories
laravel-repositories 1.0.0GNU General Publi...5PHP 5, Libraries, Design Patterns
Description 

Author

This package can access repository objects that match the criteria.

It implements the repository design pattern to perform several operations on collections of model objects.

The package can retrieve a query builder object so it can call the model to perform operations like:

- Find an object by identifier value or by attribute and value to return given object properties

- Retrieve all objects and return given object properties

- Perform searches for objects that match complex conditions and return given object properties

- Create an object with given object property values

- Update an object with new given object property values

- Delete an object with a given identifier value

- Create complex criteria to search for objects

- Retrieve a range of objects that match a query condition

- Etc.

Innovation Award
PHP Programming Innovation award nominee
April 2022
Number 6
The repository is a software design pattern to model the access to objects stored in a data container.

It allows developers to use an abstraction of how to store the object in the data container.

An application may start using a SQL database to store data objects.

Suppose the application grows, and it is necessary to use a data storage container that is more scalable than using a SQL database. In that case, repository abstraction allows changing the means to access the container without changing the application code.

This package implements the repository design pattern in PHP that developers can easily integrate into Laravel applications.

Manuel Lemos
Picture of Ahmed Saad
  Performance   Level  
Name: Ahmed Saad <contact>
Classes: 10 packages by
Country: Egypt Egypt
Age: ???
All time rank: 213721 in Egypt Egypt
Week rank: 206 Up3 in Egypt Egypt Up
Innovation award
Innovation award
Nominee: 7x

  Files folder image Files (20)  
File Role Description
Files folder imageresources (1 directory)
Files folder imagesrc (2 files, 2 directories)
Accessible without login Plain text file composer.json Data Auxiliary data

  Files folder image Files (20)  /  resources  
File Role Description
Files folder imagestubs (4 files, 1 directory)

  Files folder image Files (20)  /  resources  /  stubs  
File Role Description
Files folder imageContracts (1 file)
  Plain text file Creteria.stub Class Class source
  Plain text file Mutator.stub Class Class source
  Plain text file Repository.stub Class Class source
  Accessible without login Plain text file ServiceProvider.stub Data Auxiliary data

  Files folder image Files (20)  /  resources  /  stubs  /  Contracts  
File Role Description
  Plain text file RepositoryContract.stub Class Class source

  Files folder image Files (20)  /  src  
File Role Description
Files folder imageCommands (3 files)
Files folder imageContracts (9 files)
  Plain text file BaseRepository.php Class Class source
  Plain text file RepositoriesServiceProvider.php Class Class source

  Files folder image Files (20)  /  src  /  Commands  
File Role Description
  Plain text file MakeCreteria.php Class Class source
  Plain text file MakeMutator.php Class Class source
  Plain text file MakeRepository.php Class Class source

  Files folder image Files (20)  /  src  /  Contracts  
File Role Description
  Plain text file CreteriaContract.php Class Class source
  Plain text file HasCachableContract.php Class Class source
  Plain text file HasCreteriaContract.php Class Class source
  Plain text file HasModelMutatorContract.php Class Class source
  Plain text file HasPaginationContract.php Class Class source
  Plain text file HasRequestParserContract.php Class Class source
  Plain text file HasTransformerContract.php Class Class source
  Plain text file MutatorContract.php Class Class source
  Plain text file RepositoryContract.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:35
This week:0
All time:11,005
This week:77Up