This package provides a subscripting mechanism to use in you application. Using the Event class you can listen to and fire events.
Of course there are many event handling classes out there, but this one provides a wide field of features. Checkout the screenshots or the list below:
Events are very useful for frameworks or big projects. You could trigger events in pre made classes. For example when a user is created or logged in. The developer who uses the framework can now hook into your code and add logic. It is easy, fast and still very clean.
Obviously curiosity is very important for software engineers, so if you are curious as to how it works, go ahead an check it out. I’m positive you are going to learn a thing or two.
I was always interested in building a events or hooks package in php. It’s really useful, especially for frameworks or bigger projects.
The API of a project is very important. For this one I implemented a astonishing facade pattern. It let’s you call static methods on a none static class. The class is still testable and beautiful. I really think you are going to like this.
Change submitted for review. Thanks!
For Laravel? From Laravel?.....
The dynamic facades are inspired by laravel's, but the package is stand-alone. Could be used in laravel with minor tweaking.
Sorry, but the Live Preview don't work. And there are not screenshots... How I can take any idea from this code? Thanks!