Download the PHP package sirgrimorum/crudgenerator without Composer

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

CrudGenerator

Latest Version on Packagist PHP Version Total Downloads License

A config-driven CRUD framework for Laravel. Describe your model's fields in a PHP array and get a fully functional admin interface — create/edit forms, show views, searchable DataTables lists, file uploads, relationship selects, validation, and REST endpoints — without writing controllers, views, or JS glue code.

Features

Requirements

Installation

Run migrations

Publish configuration

Publishes config/sirgrimorum/crudgenerator.php.

Publish language files

Publish views (optional)

Publish front-end assets

Publishes DataTables, CKEditor, Select2, DateTimePicker, and other JavaScript dependencies to public/vendor/sirgrimorum/.

Quick Start

1. Generate a config file for your model

This creates config/sirgrimorum/models/post.php with all columns pre-filled from the database schema.

2. Register the model in the main config

3. Access the admin interface

Navigate to /{locale}/crud/post to see the list, create, edit, and delete interface.

Model Configuration

Every feature of the CRUD admin is controlled by a config array. Store it in config/sirgrimorum/models/modelname.php.

Minimal example

Field type reference

Type Description
text Single-line text input
email Email input with validation
url URL input
password Password input (hashed on save)
number Numeric input with optional format
textarea Multi-line plain text
html Rich text via CKEditor
article Rich text stored in TransArticles table
date Date picker
datetime Date + time picker
time Time picker
select Dropdown from opciones array or callable
checkbox Checkbox group
radio Radio button group
relationship BelongsTo — single related model select
relationships HasMany/ManyToMany — multi-select list
relationshipssel ManyToMany with pivot columns and typeahead
file Single file upload
files Multiple file upload (JSON array in DB)
color Color picker
slider Range slider
json JSON editor (JSON Editor library)
hidden Hidden input
function Read-only computed value (calls model method)

Complete field options

Rendering Admin Views

Use the static methods anywhere in your own controllers or views:

Or use the built-in routes at /{locale}/{admin_prefix}/{model} (index / create / show / edit / destroy).

Validation

CrudGenerator reads $rules from your model automatically:

Custom validation messages via $error_messages:

Custom validators provided by this package

Rule Description
unique_composite:table,col1,col2 Unique across multiple columns
unique_with:table,col1,col2 Alias for composite unique
older_than:18 Minimum age validation for date fields
with_articles:locale1,locale2 All article locales must be filled

Artisan Commands

Command Description
crudgen:createconfig {Model} Generate a model config file from DB schema
crudgen:createlang {Model} Generate a language file for the model
crudgen:createmodel {Model} Generate an Eloquent model class stub
crudgen:addget {Model} Add get($field) accessor method to model
crudgen:resources Publish front-end assets (JS/CSS libraries)
crudgen:registererror Set up error tracking model
crudgen:registermiddleware Register admin middleware
crudgen:sendalert {title} {message} Broadcast an alert to the admin

API Reference

CrudGenerator::lists()

CrudGenerator::create()

CrudGenerator::edit()

CrudGenerator::show()

CrudGenerator::validateModel()

CrudGenerator::saveObjeto()

Saves (creates or updates) a model instance, handles file uploads, and syncs relationships.

CrudGenerator::getConfigWithParametros()

Loads the model config, evaluates all __prefix__ values, and merges request parameters.

Dynamic Value Prefixes

Use these in any config value to have it evaluated at render time:

Prefix Resolves to
__route__name route('name')
__url__/path url('/path')
__trans__key trans('key')
__asset__path asset('path')
__getLocale__ App::getLocale()
__config__key config('key')
__view__template view('template')->render()
__transarticle__scope.key TransArticles content

License

The MIT License (MIT). See LICENSE.md.


All versions of crudgenerator with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
laravel/framework Version ^9.0|^10.0|^11.0|^12.0
intervention/image Version ^3.0
doctrine/dbal Version ^3.0|^4.0
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 sirgrimorum/crudgenerator contains the following files

Loading the files please wait ...