Download the PHP package niraj/crudstarter without Composer

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

crudstarter_small

Crud and API Generator Package

Stars Issues License Packagist Packagist Downloads

Package which lets you automate tedious CRUD Operations.

Detailed Package Docs

GO TO DOCS

Requirements

Installation

Required (Publish the config file)

Optional (If you want to edit stub files)

Generate Dashboard (One time command)

Package Usage

Basic Usage

php artisan gen:crud {ModelName} --fields="fieldName:dataType fieldName:dataType"

php artisan gen:api {ModelName} --fields="fieldName:dataType fieldName:dataType

php artisan del:crud {ModelName}

php artisan del:api {ModelName}

Example: To generate Post CRUD php artisan gen:crud Post --fields="name:str slug:str description:text image:str status:bool"

Adding Fields

You can add fields in gen commands which auto fills model, migration, request and api resources

To add fields we use --fields="field_name1:data_type1{space}field_name2:data_type2"

Example: To generate Post CRUD with fields

php artisan gen:crud Post --fields="name:str description:text count:int by_admin:bool is_published:select:options=published,pending"

Note: Please run auto-alignment (code-formatting) command in your ide/text-editor in generated blade files [eg: Ctrl+Alt+Shift+L in phpstorm].

Adding Relationships

to add this functionality simply add --relations="your code here" in gen command

Example: To generate Profile CRUD with relations (hasOne: Account, hasMany: Blogs and belongTo: User)

php artisan gen:crud Profile --fields="name:str user_id:fid" --relations="haso:account hasm:blogs belt:user"

Relation Name Short Hand For
haso hasOne
hasm hasMany
belt belongsTo
belm belongsToMany

Note: you can use hasMany, belongsTo etc directly in --relations command if you feel comfortable and it currently only supports these 4 common relations type.

Adding Soft-Deleting fuctionality

to add this functionality simply add --softDelete in gen command

Example: To generate Post CRUD with soft deletes

php artisan gen:crud Post --fields="name:str description:text" --softDelete

Field Data Type

some short hands for convenience are provided i.e instead of unsignedInteger we can use uint instead while defining fields

Data type Name Short Hand For
inc increments
int integer
uint unsignedInteger
tinyint tinyInteger
utinyint unsignedTinyInteger
smallint smallInteger
usmallint unsignedSmallInteger
mediumint mediumInteger
umediumint unsignedMediumInteger
bigint bigInteger
ubigint unsignedBigInteger
txt text
tinytext tinyText
mediumtext mediumText
longtext longText
bool boolean
fid foreignId

Note: For other data types like date, enum, decimal, uuid etc can typed as it is.

What will be generated !

Note: Model, Factory, Migration can be also generated for API if needed.

Customization

Notes


All versions of crudstarter with dependencies

PHP Build Version
Package Version
No informations.
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 niraj/crudstarter contains the following files

Loading the files please wait ....