All Projects → hussein4alaa → laravel-design-pattern-generator

hussein4alaa / laravel-design-pattern-generator

Licence: MIT license
Laravel Design Pattern Generator (api generator)

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to laravel-design-pattern-generator

Vue Api Query
💎 Elegant and simple way to build requests for REST API
Stars: ✭ 1,528 (+152700%)
Mutual labels:  query-builder
Api Query Params
Convert URL query parameters to MongoDB queries
Stars: ✭ 141 (+14000%)
Mutual labels:  query-builder
Hydrahon
🐉 Fast & standalone PHP MySQL Query Builder library.
Stars: ✭ 194 (+19300%)
Mutual labels:  query-builder
Sqlkit
SQL builder and powerful database toolkit for Golang
Stars: ✭ 117 (+11600%)
Mutual labels:  query-builder
Querybuilderparser
A simple to use query builder for the jQuery QueryBuilder plugin for use with Laravel.
Stars: ✭ 126 (+12500%)
Mutual labels:  query-builder
Srl Php
Simple Regex Language
Stars: ✭ 1,808 (+180700%)
Mutual labels:  query-builder
Go Structured Query
Type safe SQL query builder and struct mapper for Go
Stars: ✭ 101 (+10000%)
Mutual labels:  query-builder
Piccolo
A fast, user friendly ORM and query builder which supports asyncio.
Stars: ✭ 219 (+21800%)
Mutual labels:  query-builder
Dbr
Additions to Go's database/sql for super fast performance and convenience. (fork of gocraft/dbr)
Stars: ✭ 140 (+13900%)
Mutual labels:  query-builder
Druidry
Java based Druid Query Generator library
Stars: ✭ 174 (+17300%)
Mutual labels:  query-builder
Searcher
Searcher core
Stars: ✭ 121 (+12000%)
Mutual labels:  query-builder
Codeigniter Model
CodeIgniter 3 Active Record (ORM) Standard Model with Laravel Eloquent & Yii2 AR like
Stars: ✭ 124 (+12300%)
Mutual labels:  query-builder
Gql Query Builder
🔧 Simple GraphQL Query Builder
Stars: ✭ 155 (+15400%)
Mutual labels:  query-builder
Ship Hold
data access framework for Postgresql on nodejs
Stars: ✭ 110 (+10900%)
Mutual labels:  query-builder
Structured Filter
jQuery UI widget for structured queries like "Contacts where Firstname starts with A and Birthday before 1/1/2000 and State in (CA, NY, FL)"...
Stars: ✭ 213 (+21200%)
Mutual labels:  query-builder
Postguard
🐛 Statically validate Postgres SQL queries in JS / TS code and derive schemas.
Stars: ✭ 104 (+10300%)
Mutual labels:  query-builder
Querybuilder
SQL query builder, written in c#, helps you build complex queries easily, supports SqlServer, MySql, PostgreSql, Oracle, Sqlite and Firebird
Stars: ✭ 2,111 (+211000%)
Mutual labels:  query-builder
Sqliterally
Lightweight SQL query builder
Stars: ✭ 231 (+23000%)
Mutual labels:  query-builder
Pdox
useful query builder class that works with PHP PDO class for simple access your data.
Stars: ✭ 217 (+21600%)
Mutual labels:  query-builder
Sqorn
A Javascript library for building SQL queries
Stars: ✭ 1,871 (+187000%)
Mutual labels:  query-builder

Laravel Design Pattern Generator (api generator)

you can create your restful api with validation easily by using this package

and you can filter, sort and include eloquent relations based on a request

me

Installation:

Require this package with composer using the following command:

composer require g4t/laravel-design-pattern
php artisan vendor:publish --provider=g4t\Pattern\PatternServiceProvider 

Usage

in folder config You will find jsonapi.json
This is where you will write relations, sortable columns and filterable columns

Commands:

full command
create (Model, Controller, Route And Repostitory)
php artisan repo:name User
or if you have model
php artisan repo:name User --model=User
and you can use --force command
you can create validation from database table using this command
php artisan repo:validation ModelName

Available command options:

Command Description
--m Create Migration
--model={ModelName} Insert model in controller if you have model
--force override existing Repository

Parameters to controlling data:

You can modify parameters in config/jsonapi.json

FILTER A QUERY BASED ON A REQUEST
/users?filter[name]=John

INCLUDING RELATIONS BASED ON A REQUEST

/users?include=posts
/users?include=posts,comments

SORTING A QUERY BASED ON A REQUEST

/users?sort=id
/users?sort=-id

TAKE DATA

/users?take=10

SKIP DATA

/users?skip=10

License

Laravel Design Pattern Generator is free software licensed under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].