Download the PHP package yceruto/micro-symfony without Composer
On this page you can find all versions of the php package yceruto/micro-symfony. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package micro-symfony
Micro-Symfony Tools
Class helpers for Symfony applications.
Installation
AbstractBundle
Bundles are a very important piece of code in your Symfony applications, and most of the time they require special configuration and DI extensions to achieve their goal.
In that sense, this AbstractBundle
class will help you to create a concise and small bundle, fastly, focusing on
what you only need to define and import by providing useful shortcuts and configurators:
With this class you don't have to create a separate class for Extension
or Configuration
. Further, all methods contain
configurators that allow you to import a definition or config file in any supported format (yaml
, xml
, php
, etc.)
This is how the configuration definition should look when you are importing it from a file:
AbstractExtension
In some cases, mainly for bundle-less approach, you might want to add a DI extension to your application without a bundle
class. This AbstractExtension
class will help you to simplify your extension definition by providing the same useful
shortcuts and configurators:
You can register your extension directly into the Kernel this way:
MicroKernelTrait
This class is an implementation of the base Kernel
+ MicroKernelTrait
that allows you to create a
single "one-file" application for your cloud worker, microservice, or any other small application.
You can use the same index.php
as console application to perform the common cache clear operations or any other
command you need to run.
Symfony 6.1 Support
This feature is fully implemented since Symfony 6.1, so you can remove this package from your dependencies after upgrading accordingly.
Symfony 7.1 Support
The $container->import()
method support in prependExtension
was implemented in Symfony 7.1,
so you can remove this package from your dependencies after upgrading accordingly.
Symfony 7.2 Support
The MicroKernelTrait
optional capabilities were implemented in Symfony 7.2, so you can remove this package
from your dependencies after upgrading accordingly.
Upgrade Notes
All classes included in this package are registered under the MicroSymfony
namespace,
however, they follow the same organization that Symfony. Thus, to upgrade just remove
the Micro
prefix from all imported classes and everything should keep working as before.
License
This software is published under the MIT License
All versions of micro-symfony with dependencies
symfony/http-kernel Version ^7.1
symfony/config Version ^7.1
symfony/dependency-injection Version ^7.1