Download the PHP package waad/laravel-generate-repository-api without Composer

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

Generate Repository Design Pattern Api

you can create your restful api easily by using this library with filtering sorting

Banner

Installation:

Require this package with composer using the following command:

in config/app.php

⚠️ Change Default Guard from config/auth.php => defaults.guard if you want use differnet guard.

\  

in config/database.php if use search multi column

\  

🚀 About Me

I'm a Back End developer...

YAML Roadmap Job Of Package

Usage

- Generating All

if use force

in all that will generate (model, migration, controller api, repository, interface, properties, request forms, route string in api or web)

- Generating Some


\  

- After migration Create validation And DTO Files

create table columns in migration and do migration

 


 

- Create permissions of model into database customs

⚠️ use it if refresh database or drop permissions from database `

`

`


\  

- Filtering, Sorting And Properties Of Model

Example In properties/Car/CarPropertable

if you add manually

  Property in Model     Aliases in Propertable  
$connection $connection_override
$table $table_override
$primary $primary_override
$primary $primary_override
$timestamps $timestamps_override
$incrementing $incrementing_override
$keyType $keyType_override
$hidden $hidden_override
$dates $dates_override
$casts $casts_override
$guarded $guarded_override

\  

- Accessor And Mutator Of Model

Example In properties/Car/CarAccessorable And properties/Car/CarMutatorable

if you add manually


\  

- Scopes Of Model

Example In properties/Car/CarScopable

if you add manually


\  

- Related Of Model

Example In properties/Car/CarRelatable

if you add manually

  Property in Model     Aliases in Relatable  
$with $with_override
$withCount $withCount_override

⚠️ don't remove use ConstructorableModel; in Relatable


\  

- Policy Of Controller

Example In Policies/CarPolicy

Example

if you choose generate policy in command line with creating policy for model and controller will call to it automatic from cosntructor of controller ex $this->authorizeResource(Car::class, 'car');

example

🔥 Change Role Of Super from config/laravel-generate-repository-api.php

❤️   to clear cache of config

Example Policy for HasAnyRolePermissions

\   \  

Examples with Requests

\  

  Parameter     Cases  
include string seperator "," comma
sort string with "-" DESC Order else ASC (support multiple nested seperator "," comma)
select return only select columns from table
except return all columns of table exclude except
  Parameter     Cases  
filter array search also with relationsip used LIKE Operator In Database
search search multi columns with relationsip used LIKE Operator In Database use searchable property
strict flag boolean used with search if equal 1 or true will return more data else return few

=> (user.city.name = baghdad) And (model.year < 1995 OR model.year > 2020)

  Operator     Aliases     Example  
eq = find[user.name]=waad find[user.name]=eq:waad
ne != find[user.name]=ne:waad
gt > find[user.age]=gt:50 find[user.age]=gt:50:and:lt:100
ge >= find[user.age]=ge:50 find[user.age]=ge:50:and:le:100
lt < find[user.age]=lt:50 find[user.age]=lt:50:and:gt:10
le <= find[user.age]=le:50 find[user.age]=le:50:and:ge:10
notlike NOT LIKE find[user.name]=notlike:waad
in OR find[user.age]=in:44,43
notin NOT OR find[user.age]=notin:44,43
null NULL find[user.name]=null
notnull NOT NULL find[user.name]=notnull
today TODAY find[car.created_at]=today
nottoday NOT TODAY find[car.created_at]=nottoday

😍 If you send values by base64 example find[user.age]={{b64(NTY=)}} => find[user.age]=56

\  

- Use Pagination Or Unlimit Takes with Request

Use take and page Parameters

\  

- Return Trashed Records if use soft delete

Use trash parameter including these values:

  Operator     Meaning  
current   or   NULL   or   empty get records without trashed
all get all records with trashed
trashed get records only trashed

\  

- Use DTO Model, Pagination and List Responses

OR

OR

\  

License

MIT


All versions of laravel-generate-repository-api with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
nicolaslopezj/searchable Version ^1.13
spatie/laravel-permission Version ^5.10
spatie/data-transfer-object Version ^3.9
spatie/laravel-query-builder Version ^5.2
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 waad/laravel-generate-repository-api contains the following files

Loading the files please wait ....