{"id":14975346,"url":"https://github.com/mazfreelance/laravel-command-generator","last_synced_at":"2026-03-07T14:03:18.395Z","repository":{"id":37380462,"uuid":"438149541","full_name":"mazfreelance/laravel-command-generator","owner":"mazfreelance","description":"This is a simple package that includes some of custom Laravel artisan command into Laravel/Lumen.","archived":false,"fork":false,"pushed_at":"2023-07-25T04:54:48.000Z","size":36,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-15T16:41:34.690Z","etag":null,"topics":["laravel-framework","laravel-package","lumen-package","php","php-extension"],"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/mazfreelance.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-14T06:57:11.000Z","updated_at":"2023-07-25T03:55:35.000Z","dependencies_parsed_at":"2024-09-11T10:59:15.593Z","dependency_job_id":"41b67a91-7b3d-4147-889a-b27e525a5403","html_url":"https://github.com/mazfreelance/laravel-command-generator","commit_stats":{"total_commits":16,"total_committers":2,"mean_commits":8.0,"dds":0.0625,"last_synced_commit":"e9300a90c805e9d2483ad0fd44a83971260a749a"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/mazfreelance/laravel-command-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mazfreelance%2Flaravel-command-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mazfreelance%2Flaravel-command-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mazfreelance%2Flaravel-command-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mazfreelance%2Flaravel-command-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mazfreelance","download_url":"https://codeload.github.com/mazfreelance/laravel-command-generator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mazfreelance%2Flaravel-command-generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30216498,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T13:35:13.914Z","status":"ssl_error","status_checked_at":"2026-03-07T13:35:13.569Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["laravel-framework","laravel-package","lumen-package","php","php-extension"],"created_at":"2024-09-24T13:51:54.122Z","updated_at":"2026-03-07T14:03:16.399Z","avatar_url":"https://github.com/mazfreelance.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![License](https://img.shields.io/badge/License-MIT-yellow.svg?style=flat-square)](https://packagist.org/packages/mazfreelance/laravel-command-generator)\n[![StyleCI](https://github.styleci.io/repos/7548986/shield?style=square)](https://packagist.org/packages/mazfreelance/laravel-command-generator)\n[![Latest Version](https://img.shields.io/github/tag/mazfreelance/laravel-command-generator.svg?style=flat-square\u0026label=release)](https://github.com/mazfreelance/laravel-command-generator/tags)\n[![Total Downloads](https://img.shields.io/packagist/dt/mazfreelance/laravel-command-generator.svg?style=flat-square)](https://packagist.org/packages/mazfreelance/laravel-command-generator)\n[![Laravel Framework](https://img.shields.io/badge/extension-Laravel_Framework-green.svg?style=flat-square)](#)\n\n# Laravel Command Generator\n\nThis is a simple package that includes some of custom Laravel artisan command into Laravel/Lumen.\n\n## Installation\n\nNote: This repository now follows the Laravel/Lumen framework versioning. Use the appropriate version of this package for your Laravel/Lumen application.\n\nYou can install the package via composer:\n\n```bash\ncomposer require mazfreelance/laravel-command-generator\n```\n\n#### PHP7.x or below\n\n```bash\ncomposer require mazfreelance/laravel-command-generator=^1.0.0\n```\n\n## Configuration\n### Available Commands\n\n``` bash\nmake:action         Create a new Action class\nmake:dto            Create a new Data Transfer Object class\n```\n\n#### Default Settings\nThe default namespace for all command are `App\\Actions\\` and each name expects the filter classname to follow the `{$Name}Action` naming convention.  Here is an example of action and data transfer objects based on the default naming convention.\n\n| Actions                         | Data Transfer Object        |\n|---------------------------------|-----------------------------|\n| `App\\Actions\\UserFilter`        | `App\\DTO\\UserFilter`        |\n| `App\\Actions\\PrivatePostFilter` | `App\\DTO\\PrivatePostFilter` |\n| `App\\Actions\\GuestPostFilter`   | `App\\DTO\\GuestPostFilter`   |\n\n#### Laravel\n\n##### With Configuration File (Optional)\n\n\u003e Registering the service provider will give you access to the `php artisan model:action {name}` command as well as allow you to publish the configuration file.  Registering the service provider is not required and only needed if you want to change the default namespace or use the artisan command\n\nAfter installing the Custom Command library, register the `Mazfreelance\\LaravelCommandGenerator\\ServiceProvider::class` in your `config/app.php` configuration file:\n\n```php\n'providers' =\u003e [\n    // Other service providers...\n\n    Mazfreelance\\LaravelCommandGenerator\\ServiceProvider::class,\n],\n```\n\nCopy the package config to your local config with the publish command:\n\n```bash\nphp artisan vendor:publish --provider=\"Mazfreelance\\LaravelCommandGenerator\\ServiceProvider::class\"\n```\n\nIf install version 2.1.0 (Lumen can use this part if install [`mazfreelance/lumen-vendor-publish`](https://github.com/mazfreelance/lumen-vendor-publish)),\n\nOptionally, You can publish the config file with:\n```bash\n# If install version 2.1.0\n# Optionally, You can publish the config file with:\nphp artisan vendor:publish --provider=\"Spatie\\LaravelData\\LaravelDataServiceProvider\" --tag=\"data-config\"\n```\n\nIn the `config/custom-command.php` config file.  Set the namespace your model filters will reside in:\n\n```php\n'namespace' =\u003e [\n    'action' =\u003e 'App\\\\Actions\\\\',\n    'dto' =\u003e 'App\\\\DTO\\\\',\n]\n```\n#### Lumen\n\n##### Register The Service Provider\n\n\u003eThis is only required if you want to use the `php artisan make:action|dto` command. [#Avaiable Command](#available-commands)\n\nIn `bootstrap/app.php`:\n\n```php\n$app-\u003eregister(Mazfreelance\\LaravelCommandGenerator\\ServiceProvider::class);\n```\n\n```php\n// If install version 2.1.0,\n$app-\u003eregister(Spatie\\LaravelData\\LaravelDataServiceProvider::class);\n```\n\n##### Change The Default Namespace\n\nIn `bootstrap/app.php`:\n\n```php\nconfig(['custom-command.action.namespace' =\u003e \"App\\\\Actions\\\\\"]);\nconfig(['custom-command.dto.namespace' =\u003e \"App\\\\DTO\\\\\"]);\n```\n\n## Change log\n\nPlease see the [changelog](CHANGELOG.md) for more information on what has changed recently.\n\n## Other command for Lumen\n- [Additional lumen command](https://github.com/raditzfarhan/lumen-command-generator)\n- [Lumen Vendor Publish](https://github.com/mazfreelance/lumen-vendor-publish)\n\n## Credits\n\n- [Mazfreelance](https://github.com/mazfreelance)\n\n## License\n\nMIT. Please see the [license file](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmazfreelance%2Flaravel-command-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmazfreelance%2Flaravel-command-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmazfreelance%2Flaravel-command-generator/lists"}