{"id":20911567,"url":"https://github.com/bluzphp/bluzman","last_synced_at":"2025-05-13T07:32:21.847Z","repository":{"id":29814408,"uuid":"33358857","full_name":"bluzphp/bluzman","owner":"bluzphp","description":"Simple workflow manager for Bluz Framework","archived":false,"fork":false,"pushed_at":"2022-04-15T08:34:03.000Z","size":583,"stargazers_count":3,"open_issues_count":4,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-13T06:21:54.056Z","etag":null,"topics":["cli","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bluzphp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-03T10:35:20.000Z","updated_at":"2022-04-15T08:34:07.000Z","dependencies_parsed_at":"2022-08-28T12:50:27.841Z","dependency_job_id":null,"html_url":"https://github.com/bluzphp/bluzman","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluzphp%2Fbluzman","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluzphp%2Fbluzman/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluzphp%2Fbluzman/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluzphp%2Fbluzman/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bluzphp","download_url":"https://codeload.github.com/bluzphp/bluzman/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225189116,"owners_count":17435191,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","php"],"created_at":"2024-11-18T14:22:32.036Z","updated_at":"2024-11-18T14:22:32.764Z","avatar_url":"https://github.com/bluzphp.png","language":"PHP","readme":"Bluzman - Simple workflow manager for Bluz Framework\n======================================\nBluzman is a set of command-line tools which provides a simple workflow with an application based and maintained by Bluz framework.\n\n## Achievements\n\n[![PHP \u003e= 7.3+](https://img.shields.io/packagist/php-v/bluzphp/bluzman.svg?style=flat)](https://php.net/)\n\n[![Latest Stable Version](https://img.shields.io/packagist/v/bluzphp/bluzman.svg?label=version\u0026style=flat)](https://packagist.org/packages/bluzphp/bluzman)\n\n[![Build Status](https://img.shields.io/travis/bluzphp/bluzman/master.svg?style=flat)](https://travis-ci.com/bluzphp/bluzman)\n\n[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/bluzphp/bluzman.svg?style=flat)](https://scrutinizer-ci.com/g/bluzphp/bluzman/)\n\n[![Coverage Status](https://img.shields.io/coveralls/bluzphp/bluzman/master.svg?style=flat)](https://coveralls.io/r/bluzphp/bluzman?branch=master)\n\n[![Total Downloads](https://img.shields.io/packagist/dt/bluzphp/bluzman.svg?style=flat)](https://packagist.org/packages/bluzphp/bluzman)\n\n[![License](https://img.shields.io/packagist/l/bluzphp/bluzman.svg?style=flat)](https://packagist.org/packages/bluzphp/bluzman)\n\n## Features\n* Code-generator of the application components\n* Shorthand for phinx and composer tools\n* Shorthand for built-in web-server\n\n## Requirements\n* OS: Linux\n* PHP: 7.3 (or later)\n\n## Usage\nList of available commands\n```bash\nphp ./vendor/bin/bluzman list\n```\n\n## Code generators\n\nAll generators don't rewrite exists files, but you can run generate command with flag `--force`, to rewrite all of them\n\n### Model generator\n\nFor create new model you should run the following command in the terminal:\n```bash\nbluzman generate:model model_name table_name\n```\n\n - _model_name_ - the name of model. With this name will be created folder of model.\n - _table_name_ - the name of databases table for pattern formation properties object model.\n\n\n### Module generator\n\nFor create new module you should run the following command in the terminal:\n```bash\nbluzman generate:module module_name [controller_name]...\n```\n\n - _module_name_ - the name of module. With this name will be created folder of module.\n - _controller_name_ - the name(s) of controller(s). With this name will be created controller and view. Optional.\n\n### Controller generator\n\nFor create new controller you should run the following command in the terminal:\n```bash\nbluzman generate:controller module_name controller_name\n```\n\n - _module_name_ - the name of module. With this name will be created folder of module.\n - _controller_name_ - the name of controller. With this name will be created controller and view.\n \n### CRUD generator\n\nFor create CRUD class you should run the following command in the terminal:\n\n```bash\nbluzman generate:crud model_name \n```\nGenerator will create a class in `model_name/Crud.php`\n\nIf you want to generate CRUD controller and view you should run the next command:\n\n```bash\nbluzman generate:crud model_name module_name\n```\n\nGenerator will create a controller in `module_name/controllers/crud.php` and a view `module_name/views/crud.php`\n\n### REST generator\n\nFor create REST controller you should run the following command in the terminal:\n\n```bash\nbluzman generate:rest model_name module_name\n```\n\nGenerator will create a controller in `module_name/controllers/rest.php`.\n \n### GRID generator\n\nFor create GRID class you should run the following command in the terminal:\n\n```bash\nbluzman generate:grid model_name \n```\nGenerator will create a class in `model_name/Grid.php`\n\nIf you want to generate GRID controller and view you should run the following command in the terminal:\n\n```bash\nbluzman generate:grid model_name module_name\n```\n\nGenerator will create a controller in `module_name/controllers/grid.php` and a view `module_name/views/grid.php`\n\n### All-in-one generator - scaffold\n\nGenerator `scaffold` will generate:\n\n* [Model](#model-generator)\n* [Module](#module-generator)\n* [Crud](#crud-generator)\n* [Grid](#grid-generator)\n\nFor generate all of them run the following command in the terminal:\n\n```bash\nbluzman generate:scaffold model_name table_name module_name\n```\n\n## Migrations\n\u003e All `db:command` commands is just shorthand to call `php /vendor/bin/phinx command -e default -c phinx.php`\n\n### Status\n```bash\nbluzman db:status\n```\n\n### Create migration\n```bash\nbluzman db:create UsersTable\n```\n\n### Migrate\n```bash\nbluzman db:migrate\n```\n\n### Rollback last migration\n```bash\nbluzman db:rollback\n```\n\n### Create seed\n```bash\nbluzman db:seed:create UserSeed\n```\n\n### Apply seed data\n```bash\n# all seed\nbluzman db:seed:run\n# specified seed\nbluzman db:seed:run UserSeed\n```\n\n## Install and remove modules\n\n\u003e Information about available modules will retrieve from https://github.com/bluzphp by `bluz-module` tag\n\nRetrieve available modules:\n```bash\nbluzman module:list\n```\n\nInstall module:\n```bash\nbluzman module:install auth\n```\n\nRemove module:\n```bash\nbluzman module:remove auth\n```\n\n## Tests\nFor run all tests:\n```bash\nbluzman test\n```\n\nFor run specified group:\n```bash\nbluzman test module-options\n```\n\n## Server\n\nBluzman provides a commands list to operate with built-in PHP server.\n\nTo launch built-in PHP server you should run the following command in the terminal:\n```bash\nbluzman server:start --host[=\"...\"] --port[=\"...\"]\n```\nBy default server will be available by the address **0.0.0.0:8000** and you will see all logs in the terminal.\n\nBut there is an option to run server in the background, this requires an option **-b**:\n\n```bash\nbluzman server:start ... -b\n```\n\nAnd if server launched in the background, it can be stopped with following command:\n```bash\nbluzman server:stop --host[=\"...\"] --port[=\"...\"]\n```\n\nIf you want to know the status of the server you should run the command in the terminal:\n```bash\nbluzman server:status --host[=\"...\"] --port[=\"...\"]\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluzphp%2Fbluzman","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbluzphp%2Fbluzman","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluzphp%2Fbluzman/lists"}