Make sure Composer is installed globally, as explained in the installation chapter of the Composer documentation.
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
composer require atournayre/maker-bundle --dev
Then, enable the bundle by adding it to the list of registered bundles
in the config/bundles.php file of your project:
// config/bundles.php
return [
// ...
Atournayre\Bundle\MakerBundle\AtournayreMakerBundle::class => ['dev' => true],
];
# config/packages/atournayre_maker.yaml
atournayre_maker:
root_namespace: 'App'
php bin/console config:dump atournayre_maker.php bin/console debug:config atournayre_maker.Legend:
| Status | Command | Description and documentation |
|---|---|---|
| ✅️ | make:add:events-to-entities |
Add events to entities |
| ✅️ | make:new:command |
Create a new Command |
| ⚠️ | make:new:controller |
Create a new Controller |
| ✅️ | make:new:collection |
Create a new Collection |
| ✅ | make:new:dto |
Create a new DTO |
| ✅ | make:new:enum |
Create a new Enum |
| ✅ | make:new:event |
Create a new Event and Listener |
| ✅ | make:new:exception |
Create a new Exception |
| ✅ | make:new:interface |
Create a new Interface |
| ✅ | make:new:logger |
Create a new Logger |
| ✅ | make:new:service |
Create a new Service |
| ✅ | make:new:trait |
Create a new Trait |
| ✅ | make:new:vo |
Create a new VO |
| ✅ | project:getting-started |
Add minimal files to start a project |
Config directory.MakerConfiguration class.classNameSuffix method.Builder directory.AbstractBuilder class.#[AutoconfigureTag('atournayre_maker.php_file_builder')] attribute to the class.Maker directory.AbstractMaker class.#[AutoconfigureTag('maker.command')] attribute to the class.How can I help you explore Laravel packages today?