acclimatecontainer / acclimate-container Goto Github PK
View Code? Open in Web Editor NEWAdapters for PHP framework containers to an interoperable interface
License: MIT License
Adapters for PHP framework containers to an interoperable interface
License: MIT License
After a discussion with @dongilbert on Twitter, it might make sense to change the vendor name and namespace/directory structure of Acclimate to:
This is all pending some more positive feedback/support and evidence of usefulness of the package itself, so I can justify spending time and effort on it. Changing the namespaces would happen before the 1.0 release.
Jeremeamia\Acclimate
Jeremeamia\Acclimate\Acclimate
Acclimate\Container
?Acclimate\Container\ContainerAcclimator
?In the (apparently likely) event that PSR-11 is accepted by FIG, should this project switch to providing PSR-11 adapters to containers that need it?
Any chance you would consider breaking this into two projects, one for the container implementation and one for the adaptors (or even one per adaptor). I would love to use this project as a central DI container for a micro-framework project, but having to load all the dev dependencies for any dev project when using the micro-framework is a problem we would like to avoid. Users who want to take advantage of adaptors to other containers may not mind the extra weight, but the burden should not be placed on all users of the container.
Upgrade from Pimple 1 to Pimple 3
Great Dependency Injection Container.
Compatibily should be great, according to your readme.
No rush, but it would be cool to see adapters made for https://github.com/rdlowrey/auryn and https://github.com/Level-2/Dice
(Apologies in advance if this is some noob error on my part)
EXPECTED: PSR4 compliance?
namespace Acclimate\Container;
should be found at:
acclimate-container/src/Acclimate/Container/
ACTUAL:
namespace Acclimate\Container;
Is found at:
acclimate-container/src/`
Notes
Acclimate doesn't seem consistent with PSR4 (http://www.php-fig.org/psr/psr-4/) :
"The contiguous sub-namespace names after the "namespace prefix" correspond to a subdirectory within a "base directory", in which the namespace separators represent directory separators. The subdirectory name MUST match the case of the sub-namespace names."
Other projects, even the PHP DI interop, map more directly and consistently, for example:
container-interop/src/Interop/Container/ContainerInterface.php
//
namespace Interop\Container;
interface ContainerInterface
{
I'm not using (and can't use) composer, so perhaps that's why It's affected me?
(PS: Thanks for making and maintaining this library, very useful!)
Ref #28
Hey, thanks for a great tool! I'm trying to integrate PHP DI and larval containers.
This is specifically because Laravel's container has some funky behaviour and from my usage, it seems inferior to PHP DI.
I understand that a make
method is outside of the scope of PSR11, but seems like a useful addition to Acclimate?
http://php-di.org/doc/container.html#make
https://laravel.com/docs/5.5/container#resolving
Latest version of Guzzle no longer has a container.
What do you think about Acclimate?
Is it a good idea?
Can you think of any good use cases for it?
Any other thoughts, ideas, feedback, criticism, or praise you want to share?
Please do.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.