DEV Community

Diam
Diam

Posted on • Edited on

#PHP Meet nette-maker: A CLI Code Generator for Nette Framework

If you work with Nette Framework, you know this pain - every new feature means
manually creating presenter, model, repository, service, migration and latte template.

I built nette-maker to solve this.

composer require unquam/nette-maker
Enter fullscreen mode Exit fullscreen mode

One command generates everything:

php nette make:module User
Enter fullscreen mode Exit fullscreen mode

Creates presenter, model, repository, service, migration and latte template instantly.

Also includes:

  • Database migrations with TableBuilder (MySQL, PostgreSQL, SQLite, MSSQL)
  • Seeders and Factories for test data
  • Authentication scaffolding (make:auth)
  • API Resources with pagination support
  • Cache clearing (clear:cache)
  • Interactive prompts
php nette migrate
php nette migrate:fresh --seed
php nette make:auth
php nette make:resource UserResource
php nette make:request Article/Store #Api Form Request Validation
php nette make:request User/Update –web #Web Form Request Validation
Enter fullscreen mode Exit fullscreen mode

GitHub: https://github.com/unquam/nette-maker
Packagist: https://packagist.org/packages/unquam/nette-maker

Feedback welcome!

Top comments (0)