Creating an application in Yii3 - part 3 the container di.

This page summarizes the projects mentioned and recommended in the original post on dev.to

JetBrains - Tell us how you use coding tools. You may win a prize!
Are you a developer or a data analyst? Share your thoughts about your coding tools in our short survey and get a chance to win prizes!
surveys.jetbrains.com
featured
Sevalla - Deploy and host your apps and databases, now with $50 credit!
Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!
sevalla.com
featured
  1. di

    PSR-11 compatible DI container and injector (by yiisoft)

    Using the container di: Usage of the container di is fairly simple: You first initialize it with an array of definitions. The array keys are usually interface names. It will then use these definitions to create an object whenever that type is requested. This happens for example when fetching a type directly from the container somewhere in the application. But objects are also created implicitly if a definition has a dependency to another definition.

  2. JetBrains

    Tell us how you use coding tools. You may win a prize! Are you a developer or a data analyst? Share your thoughts about your coding tools in our short survey and get a chance to win prizes!

    JetBrains logo
  3. definitions

    The package provides definition syntax. Definition is describing a way to create and configure a service or an object.

    Definitions is describing a way to create and configure a service, an object or return any other value. It must implement  Yiisoft\Definitions\Contract\DefinitionInterface that has a single method resolve(ContainerInterface $container).

  4. app

    Yii3 web application template (by yiisoft)

    After explaining the functioning, it seems that the configurations are complex, but they are not, the container di, does all the work for you, applying the best practices, you just have to learn the syntax of the container and the references, and everything will be simple, now let's see the actual example in our app template.

  5. config

    Configuration management (by yiisoft)

    Now we understand how to do any configuration of any YiiFramework package or external, it is not necessary to have a single long and complex configuration file, we can organize it according to the group of configurations and Yii config will do the work for you, as well as the container it applies the definitions for you, with the automatic wiring facility in controllers, which makes it easy to access any container dependency without the need to use static access to it, or depend on the container itself.

  6. Yii2

    Yii 2: The Fast, Secure and Professional PHP Framework

    Now we understand how to do any configuration of any YiiFramework package or external, it is not necessary to have a single long and complex configuration file, we can organize it according to the group of configurations and Yii config will do the work for you, as well as the container it applies the definitions for you, with the automatic wiring facility in controllers, which makes it easy to access any container dependency without the need to use static access to it, or depend on the container itself.

  7. Sevalla

    Deploy and host your apps and databases, now with $50 credit! Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!

    Sevalla logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Creating an application in Yii3.

    4 projects | dev.to | 5 Jan 2023
  • 🔥 Yii Database abstraction release

    8 projects | /r/PHP | 12 Apr 2023
  • Creating an application # 5 - install using sub directory

    2 projects | /r/yii3 | 14 Jan 2023
  • Assets #1 - definitions

    5 projects | /r/yii3 | 13 Jan 2023
  • Creating an application #2 - the concept of configuration

    2 projects | /r/yii3 | 13 Jan 2023