2015年3月9日星期一

SitePoint PHP Blog: Exploring the Webiny Framework: The StdLib Component


In this first post in a new series on SitePoint's PHP blog Bruno Skvorc about the Webiny framework and why they chose to "reinvent the wheel" in a lot of their code. In this first post Bruno focuses in on the StdLib component.



We all know there's no shortage of frameworks in the PHP ecosystem, so it surprised me quite a bit to see another pop up rather recently. The framework is called Webiny, and, while packed to the brim with wheel reinventions they deem necessary, there are some genuinely interesting components in there that warrant taking a look. In this introductory post, we won't be focusing on the framework as a whole, but on the most basic of its components - the StdLib.


The StdLib component is responsible for base level functionality including making using scalar variables (as opposed to objects) simpler. It makes use of traits to include its functionality across the board rather than through direct inheritance. He lists some of the features included in the component, various traits for reuse, like the "factory loader" and validator traits. He includes descriptions and code examples of several others as well, showing them in use and some of their limitations too.


Link: http://www.sitepoint.com/exploring-webiny-framework-stdlib-component/

没有评论:

发表评论