Clean and well-documented source
However, it still looks very usable and rather mature. Code has been added at a pretty quick pace, there’s been 102 commits since Belt’s release on GitHub, a little over a week ago.
Basically, you just include
belt and use it’s built in methods/functions to do certain things that would take a bit more work using straight PHP. For example, to get the maximun of an array of numbers, do this:
<?php Belt::max([1, 2, 3]) ?>
A value of
3 will be returned, because it’s the max value there.
And from the readme, a list of what Belt offers.
- 60+ useful functions
- ability to use the facade Belt or a dedicated component (e.g. BeltUtilities)
- fully tested
- source code is clean and documented
Seems like it offers some pretty useful functions, and it looks really easy to use. I’ve been looking for a solid PHP base to use and this may just be it. Anyone got any other suggestions? I’ve heard a lot about Skeleton for PHP.
Searching for “skeleton” on GitHub, then filtering for PHP, gives a LOT of results, over 1,000 results to be more precise. So, maybe I’ll browse there for a while before making a decision.
Any suggestions can be left in the comments.
Where to now?
Work with Me
Think you'd need help getting somethink like this setup on your own? Or maybe you've got an idea for a product but don't know how to turn it into 'something'. I can help on both fronts! Just get in touch and we can chat about your needs.