Giter VIP home page Giter VIP logo

acclimate-container's People

Contributors

grahamcampbell avatar jeremeamia avatar localheinz avatar miclf avatar mnapoli avatar moufmouf avatar sam-burns avatar smasty avatar theluk avatar tomasvotruba avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

acclimate-container's Issues

Change the vendor name

After a discussion with @dongilbert on Twitter, it might make sense to change the vendor name and namespace/directory structure of Acclimate to:

  1. Broaden the potential scope of Acclimate (which is a cool name) so that other types of adapters could be created (e.g., event dispatching, session handling, etc.).
  2. Not be directly associated with my name in the case that the project is passed on to another owner at some point.

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.

  • Current:
    • Package Namespace: Jeremeamia\Acclimate
    • Core Class: Jeremeamia\Acclimate\Acclimate
  • Proposed:
    • Package Namespace: Acclimate\Container?
    • Core Class: Acclimate\Container\ContainerAcclimator?

Switch to PSR-11?

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?

Consider separating container from adaptors

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.

Namespace -> dir mapping inconsistent (PSR4 compliance)?

(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!)

Request for Feedback

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.