initial commit

This commit is contained in:
boris
2025-09-30 09:24:25 +01:00
committed by boris
parent a783a12c97
commit c7770ea03b
4695 changed files with 525784 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
The <info>%command.name%</info> command generates various authentication systems,
by asking questions.
It can provide an empty authenticator, or a full login form authentication process.
In both cases it also updates your <info>security.yaml</info>.
For the login form, it also generates a controller and the Twig template.
<info>php %command.full_name%</info>

View File

@@ -0,0 +1,5 @@
The <info>%command.name%</info> command generates a new command:
<info>php %command.full_name% app:do-something</info>
If the argument is missing, the command will ask for the command name interactively.

View File

@@ -0,0 +1,14 @@
The <info>%command.name%</info> command generates a new controller class.
<info>php %command.full_name% CoolStuffController</info>
If the argument is missing, the command will ask for the controller class name interactively.
If you have the <info>symfony/twig-bundle</info> installed, a Twig template will also be
generated for the controller.
<info>composer require symfony/twig-bundle</info>
You can also generate the controller alone, without template with this option:
<info>php %command.full_name% --no-template</info>

View File

@@ -0,0 +1,5 @@
The <info>%command.name%</info> command generates crud controller with templates for selected entity.
<info>php %command.full_name% BlogPost</info>
If the argument is missing, the command will ask for the entity class name interactively.

View File

@@ -0,0 +1,5 @@
The <info>%command.name%</info> command generates or updates databases services in compose.yaml
<info>php %command.full_name%</info>
Supports MySQL, MariaDB and PostgreSQL

View File

@@ -0,0 +1,24 @@
The <info>%command.name%</info> command creates or updates an entity and repository class.
<info>php %command.full_name% BlogPost</info>
If the argument is missing, the command will ask for the entity class name interactively.
You can also mark this class as an API Platform resource. A hypermedia CRUD API will
automatically be available for this entity class:
<info>php %command.full_name% --api-resource</info>
Symfony can also broadcast all changes made to the entity to the client using Symfony
UX Turbo.
<info>php %command.full_name% --broadcast</info>
You can also generate all the getter/setter/adder/remover methods
for the properties of existing entities:
<info>php %command.full_name% --regenerate</info>
You can also *overwrite* any existing methods:
<info>php %command.full_name% --regenerate --overwrite</info>

View File

@@ -0,0 +1,5 @@
The <info>%command.name%</info> command generates a new Doctrine fixtures class.
<info>php %command.full_name% AppFixtures</info>
If the argument is missing, the command will ask for a class interactively.

View File

@@ -0,0 +1,16 @@
The <info>%command.name%</info> command generates a new form class.
<info>php %command.full_name% UserType</info>
If the argument is missing, the command will ask for the form class interactively.
You can optionally specify the bound class in a second argument.
This can be the name of an entity like <info>User</info>
<info>php %command.full_name% UserType User</info>
You can also specify a fully qualified name to another class like <info>\App\Dto\UserData</info>.
Slashes must be escaped in the argument.
<info>php %command.full_name% UserType \\App\\Dto\\UserData</info>

View File

@@ -0,0 +1,5 @@
The <info>%command.name%</info> command generates a new functional test class.
<info>php %command.full_name% DefaultControllerTest</info>
If the argument is missing, the command will ask for the class name interactively.

View File

@@ -0,0 +1,5 @@
The <info>%command.name%</info> command generates a new event subscriber class or a new event listener class.
<info>php %command.full_name% ExceptionListener</info>
If the argument is missing, the command will ask for the class name interactively.

View File

@@ -0,0 +1,5 @@
The <info>%command.name%</info> command generates a new message class & handler.
<info>php %command.full_name% EmailMessage</info>
If the argument is missing, the command will ask for the message class interactively.

View File

@@ -0,0 +1,5 @@
The <info>%command.name%</info> command generates a new Middleware class.
<info>php %command.full_name% CustomMiddleware</info>
If the argument is missing, the command will ask for the message class interactively.

View File

@@ -0,0 +1,7 @@
The <info>%command.name%</info> command generates a new migration:
<info>php %command.full_name%</info>
You can also generate a formatted migration with this option:
<info>php %command.full_name% --formatted</info>

View File

@@ -0,0 +1,5 @@
The <info>%command.name%</info> command generates a complete registration form, controller & template.
<info>php %command.full_name%</info>
The command will ask for several pieces of information to build your form.

View File

@@ -0,0 +1,18 @@
The <info>%command.name%</info> command generates all the files needed to implement
a fully-functional & secure password reset system.
The SymfonycastsResetPasswordBundle is required and can be added using composer:
<info>composer require symfonycasts/reset-password-bundle</info>
For more information on the <info>reset-password-bundle</info> check out:
<href=https://github.com/symfonycasts/reset-password-bundle>https://github.com/symfonycasts/reset-password-bundle</>
<info>%command.name%</info> requires a user entity with an email property,
email getter method, and a password setter method. Maker will ask for these
interactively if they cannot be guessed.
Maker will also update your <info>reset-password.yaml</info> configuration file
if one exists. If you have customized the configuration file, maker will attempt
to modify it accordingly but preserve your customizations.
<info>php %command.full_name%</info>

View File

@@ -0,0 +1,8 @@
The <info>%command.name%</info> command generates a schedule to automate repeated
tasks using Symfony's Scheduler Component.
If the Scheduler Component is not installed, <info>%command.name%</info> will
install it automatically using composer. You can of course do this manually by
running <info>composer require symfony/scheduler</info>.
<info>php %command.full_name%</info>

View File

@@ -0,0 +1,5 @@
The <info>%command.name%</info> command generates a new serializer encoder class.
<info>php %command.full_name% YamlEncoder</info>
If the argument is missing, the command will ask for the class name interactively.

View File

@@ -0,0 +1,5 @@
The <info>%command.name%</info> command generates a new serializer normalizer class.
<info>php %command.full_name% UserNormalizer</info>
If the argument is missing, the command will ask for the class name interactively.

View File

@@ -0,0 +1,15 @@
The <info>%command.name%</info> command generates a new Stimulus controller.
<info>php %command.full_name% hello</info>
If the argument is missing, the command will ask for the controller name interactively.
To generate a TypeScript file (instead of a JavaScript file) use the <info>--typescript</info>
(or <info>--ts</info>) option:
<info>php %command.full_name% hello --typescript</info>
It will also interactively ask for values, targets, classes to add to the Stimulus
controller (optional).
<info>php %command.full_name%</info>

View File

@@ -0,0 +1,5 @@
The <info>%command.name%</info> command generates a new event subscriber class.
<info>php %command.full_name% ExceptionSubscriber</info>
If the argument is missing, the command will ask for the class name interactively.

View File

@@ -0,0 +1,7 @@
The <info>%command.name%</info> command generates a new test class.
<info>php %command.full_name% TestCase BlogPostTest</info>
If the first argument is missing, the command will ask for the test type interactively.
If the second argument is missing, the command will ask for the class name interactively.

View File

@@ -0,0 +1,5 @@
The <info>%command.name%</info> command generates a new Twig extension with its runtime class.
<info>php %command.full_name% AppExtension</info>
If the argument is missing, the command will ask for the class name interactively.

View File

@@ -0,0 +1,5 @@
The <info>%command.name%</info> command generates a new unit test class.
<info>php %command.full_name% UtilTest</info>
If the argument is missing, the command will ask for the class name interactively.

View File

@@ -0,0 +1,7 @@
The <info>%command.name%</info> command generates a new user class for security
and updates your security.yaml file for it. It will also generate a user provider
class if your situation needs a custom class.
<info>php %command.full_name% User</info>
If the argument is missing, the command will ask for the class name interactively.

View File

@@ -0,0 +1,5 @@
The <info>%command.name%</info> command generates a new validation constraint.
<info>php %command.full_name% EnabledValidator</info>
If the argument is missing, the command will ask for the constraint class name interactively.

View File

@@ -0,0 +1,5 @@
The <info>%command.name%</info> command generates a new security voter.
<info>php %command.full_name% BlogPostVoter</info>
If the argument is missing, the command will ask for the class name interactively.

View File

@@ -0,0 +1,8 @@
The <info>%command.name%</info> command creates a RequestParser, a WebhookHandler and adds the necessary configuration
for a new Webhook.
<info>php %command.full_name% stripe</info>
If the argument is missing, the command will ask for the webhook name interactively.
It will also interactively ask for the RequestMatchers to use for the RequestParser's getRequestMatcher function.

View File

@@ -0,0 +1,6 @@
To generate tailored PHPUnit tests, simply call:
<info>php %command.full_name% --with-tests</info>
This will generate a unit test in <info>tests/</info> for you to review then use
to test the new functionality of your app.

View File

@@ -0,0 +1,10 @@
Instead of using the default "int" type for the entity's "id", you can use the
UUID type from Symfony's Uid component.
<href=https://symfony.com/doc/current/components/uid.html#storing-uuids-in-databases>https://symfony.com/doc/current/components/uid.html#storing-uuids-in-databases</>
<info>php %command.full_name% --with-uuid</info>
Or you can use the ULID type from Symfony's Uid component.
<href=https://symfony.com/doc/current/components/uid.html#storing-ulids-in-databases>https://symfony.com/doc/current/components/uid.html#storing-ulids-in-databases</>
<info>php %command.full_name% --with-ulid</info>

View File

@@ -0,0 +1,8 @@
The <info>%command.name%</info> command generates a simple custom authenticator
class based off the example provided in:
<href=https://symfony.com/doc/current/security/custom_authenticator.html>https://symfony.com/doc/current/security/custom_authenticator.html</>
This will also update your <info>security.yaml</info> for the new custom authenticator.
<info>php %command.full_name%</info>

View File

@@ -0,0 +1,9 @@
The <info>%command.name%</info> command generates a controller and Twig template
to allow users to login using the form_login authenticator.
The controller name, and logout ability can be customized by answering the
questions asked when running <info>%command.name%</info>.
This will also update your <info>security.yaml</info> for the new authenticator.
<info>php %command.full_name%</info>