Download the PHP package dejwcake/admin-generator without Composer

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

Admin Generator

Admin Generator is a Laravel package that quickly scaffolds full CRUD administration for your existing, migrated database tables. It generates controllers, form requests, models, views, routes, and translations so you can get a production-ready admin interface in minutes instead of wiring everything by hand.

It builds on the admin UI template from our dejwCake/admin-ui package and is shipped as part of the Craftable ecosystem, making it a good fit for new and existing Craftable-based projects.

Example of an administration interface generated with this package: Craftable administration area example

This package is part of Craftable (dejwCake/craftable), an administration starter kit for Laravel 12, forked from Craftable (brackets/craftable).

Documentation

You can find full documentation at https://docs.getcraftable.com/#/admin-generator

Choosing which actions to generate

By default admin:generate scaffolds every action except export. Use --only or --except with a comma-separated list to choose the actions for a resource:

Action What it generates
create store request, create/store controller methods and routes, create page, form component, the listing's create button
edit update request, edit/update controller methods and routes, edit page, form component, the listing's edit button
show show controller method and route, show page and component, the listing's show button
delete destroy request, controller method and route, the listing's delete button
bulk-delete bulk-destroy request, controller method and route, the listing's bulk-operations bar
export export request, controller method and route, the Export class, the listing's export button

index is always generated and can't be listed. The listing is the resource's admin page: the menu link points to it, and it hosts the buttons for every other action. A resource without it would have nothing to navigate to, so --only=index,… is rejected rather than silently ignored.

What's generated regardless of the selection: the model and factory, the controller with its index method, the index request, the listing (Blade page and Vue component), routes, translations and the permissions migration. The routes, translations and listing only contain entries for the selected actions.

The permissions migration is always complete, with every action's permission. Its rows are referenced by role_has_permissions, so regenerating a resource with a narrower set would delete grants roles already have. A permission for an action that isn't generated is harmless.

Soft-deleting models

A table with a deleted_at column gets a trash on top of delete and bulk-delete. Nothing changes for a table without it.

Deprecated flags

--with-export (-e) and --without-bulk (-wb) still work, and are applied on top of --only/--except. --with-export can only add export, and --without-bulk can only remove bulk-delete. admin:generate:permissions accepts --without-bulk but ignores it.

admin:generate:user and admin:generate:admin-user accept the same options. admin:generate:admin-user:profile does not take them.

The generators whose output depends on the selection (admin:generate:controller, admin:generate:routes, admin:generate:blade-index, admin:generate:vue-listing and admin:generate:lang) accept the same options, so each one can be run on its own. The others generate one action's files and are simply not called when that action is left out.

Issues

Where do I report issues? If something is not working as expected, please open an issue in the main repository https://github.com/dejwCake/craftable.

How to develop this project

Composer

Update dependencies:

Composer normalization:

Run code analysis tools (php-qa)

PHP compatibility:

Code style:

Fix style issues:

Static analysis (phpstan):

Regenerate the phpstan baseline:

Mess detector (phpmd):

Regenerate the phpmd baseline:

Run tests

Run tests against mariadb:

Run tests against postgresql:

Run tests with coverage:

To regenerate snapshots use:

Run the whole PHP suite

Run every PHP check and the test suite against both databases in sequence (stops at the first failure):


All versions of admin-generator with dependencies

PHP Build Version
Package Version
Requires php Version ^8.5
illuminate/console Version ^13.0
illuminate/support Version ^13.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 dejwcake/admin-generator contains the following files

Loading the files please wait ...