Coder Social home page Coder Social logo

dispenser's Introduction

Dispenser : A php dependency injection library

Intro

What I missed with most php dependency injection libaries was auto-completion
hence I took the long route and made my own which can export DI wiring to native php code.
Set the build in a ant task and it’s easypeasy.

Progress

So far the basic stuff work. Theres various importers and exporters. More features are in the works.
I have yet to use it in a real project, but I plan to near future. When I do I will get a better feeling
of what is lacking. Feel free to give feedback.

You can define/import wiring via:

  • Programatically
  • Array
  • XML
  • Yadif array

You can export to:

  • Array
  • Native php code

Examples

There are various examples in the examples.php file, it’s rough and ugly.
I am in the works of making a proper example documentation, and will be out soon.

Tests

I have tried to be a good boy on writing tests, there’s decent coverage. I still lack
tests on some of the newer features, importers/exporters.

dispenser's People

Contributors

simensan avatar

Stargazers

Christopher Östlund avatar

Watchers

 avatar James Cloos avatar  avatar

Forkers

thecookie

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.