Yawp 1.0.4 Released, and Yawp2

With this release, sessions can be configured to not auto-start by adding a [Yawp] group ‘session_start = false’ directive and commenting out the [Auth] group, per request by David Glenn. Download the new version from phpyawp.com.

Also, I’m beginning work on Yawp2, which should be infinitely more configurable using a plugin architecture (suggested via proof-of-concept code from Ian Eure). Instead of being limited to the standard Yawp object set (Auth, Benchmark_Timer, Cache_Lite, DB, Log, and Var_Dump) you will be able to plug in any PEAR object and lazy-load it on first call, as well as autoload objects at Yawp::start() time (the current behavior). There will be support for convenience methods through the core Yawp object so that you can use method calls to a plugin without having to load the plugin yourself.

The idea behind Yawp is that you always need a certain set of single objects in your app: a database connection, a cache, authentication, a logger, and so on. Yawp instantiates, aggregates, and encapsulates those objects away from the global space so you can concentrate on the “real” part of your program. Does that mean Yawp is an example of aspect-oriented programming?

Are you stuck with a legacy PHP application? You should buy my book because it gives you a step-by-step guide to improving your codebase, all while keeping it running the whole time.
Share This!Share on Google+Share on FacebookTweet about this on TwitterShare on RedditShare on LinkedIn

One thought on “Yawp 1.0.4 Released, and Yawp2

  1. I’ve always been interested in Yawp, but found that it wasn’t entirely flexible enough for my outrageous needs. I’m exciting about Yawp2 and look forward to seeing what you produce.

Leave a Reply

Your email address will not be published. Required fields are marked *