PHP-DI
Slim Framework
PHP-DI | Slim Framework | |
---|---|---|
13 | 8 | |
2,628 | 11,822 | |
0.3% | 0.2% | |
6.3 | 6.6 | |
11 days ago | about 1 month ago | |
PHP | PHP | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
PHP-DI
-
Reusing PHP code (with GIFs)
You may read PHP-DI to dig further.
-
In your opinion, which existing PHP framework can become as popular as Symphony or Laravel?
This one is compliant with PSR-11 and super easy to use: https://php-di.org/
- Slim, possívelmente o framework ideal para quem vem do Golang
-
7 WordPress Best Practices For Real Engineers
PHP-DI
-
Build a Speech-to-Text Web Application with Rev AI and PHP (Part 1)
PHP-DI: a PHP dependency injection container
-
Running non-blocking A/B tests, feature flags with Laravel, PHP
Please, visit the repository for configuration instructions. The package wouldn't work without DI. So, if you're not using DI yet, try PHP-DI.
-
What PHP book would you most like to see written?
With a real DI system https://github.com/PHP-DI/PHP-DI
-
Searching alternative to Singleton and Dependecy Injection
Your service locator can cache the generated objects or create them on demand every time. How that is handled is up to your DI/SL library. For example, PHP\DI will cache a created object and pass the same instance to everything unless you tell it otherwise.
-
When Symfony Http Kernel is a Too Big Hammer to Use
What about using php-di?
- How to properly write a database class in php with singleton pattern?
Slim Framework
-
Top 12 PHP Frameworks For Web Development in 2024
Slim is a micro PHP framework used for web development with 11.7k stars and 2k forks on GitHub. It has a simple and intuitive API development process. It is a micro-framework, meaning you only get a minimum of support for HTTP requests and forwarding requests to appropriate controllers. So the question is, why should you choose a micro-framework? Because it offers you flexibility and high extensibility.
- Slim, possívelmente o framework ideal para quem vem do Golang
-
Any backend framework that just 'works'? I find Spring very difficult and cumbersome.
Slim is very lightweight and has a similar API to Express https://github.com/slimphp/Slim
-
Intermittent PHP Abstract Class Error
Yes, I've opened a ticket with Slim. I also saw it in a non-slim file (Pimple) so I don't think it is a Slim issue.https://github.com/slimphp/Slim/issues/2160
- Decorator pattern implementing interface
-
Piko router, a fast router for PHP based on radix tree
Sounds like part of Slim's RoutingResults. Which then is pretty much:
-
Nine years after, how much of this is still true about PHP?
Switched from Python to PHP and now using Slim. Very happy with the move so far.
-
PHP routing library for fast API development
At my day job we needed to develop an API and I've never really tried to build one using vanilla PHP, but instead used frameworks such as CodeIgniter or Slim or just a simple file that would mimic the functionality of an API but not be a proper one. Also we had a requirement that we needed to have full control over the code so we were not supposed to use any of the pre built solutions because of that requirement.
What are some alternatives?
Pimple - A small PHP dependency injection container
Laravel - Laravel is a web application framework with expressive, elegant syntax. We’ve already laid the foundation for your next big idea — freeing you to create without sweating the small things.
Symfony DI - Allows you to standardize and centralize the way objects are constructed in your application
Symfony - The Symfony PHP framework
Container - Small but powerful dependency injection container
Yii2 - Yii 2: The Fast, Secure and Professional PHP Framework
Auryn - IoC Dependency Injector
CodeIgniter - Open Source PHP Framework (originally from EllisLab)
Nette DI - 💎 Flexible, compiled and full-featured Dependency Injection Container with perfectly usable autowiring and support for all new PHP 7 features.
Swoole - 🚀 Coroutine-based concurrency library for PHP
bref - Serverless PHP on AWS Lambda
CodeIgniter4 - Open Source PHP Framework (originally from EllisLab)