Strana – Smart Pagination Library for PHP

A framework agnostic, smart pagination library for PHP. Just a few lines of code and fully functional pagination is ready. Paginate your records with Strana. Strana will slice(limit and offset) these records, generate pagination links for you and reads page number from them, all automatically. Features: Built-in adapters for Doctrine, Eloquent (Laravel), Pixie, PHP Array and you can do it manually. Readable syntax Add Infinite Scroll with one line It automatically detects which DBAL you are using. Styles automatically with Twitter Bootstrap, Zurb Foundation and most of other...

Pixie – A Database Query Builder for PHP

It took me few weeks to build Pixie, a lightweight, expressive, framework agnostic query builder for PHP, it can also be referred as a Database Abstraction Layer. Pixie supports MySQL, SQLite and PostgreSQL and it takes care of query sanitization, table prefixing and many other things with a unified API. At least PHP 5.3 is required. It has some advanced features like: Query Events Nested Criteria Sub Queries Nested Queries Multiple Database Connections. Check out the installation instructions and documentation on GitHub. Install or View...

PHP Router in 140 Characters

This is a dimple(damn simple) URL routing script for PHP which is written in just 140 characters of code, so it fits within a tweet. Its NOT a good router at all, don't use it on a real application, its not exception handled either. I did it just for fun and to demonstrate the simplicity So here's the router code, and that's all (seriously). Fork on GitHub. Usage Create a file index.php in your server root and try this code Now visit your server root...

GetSetGo – Dynamic Setter Getter Library for PHP

GetSetGo is a dynamic setter-getter library for PHP 5.4+. Its developed by me and Sheikh Heera, and yes, its well unit tested. You can use methods like setFoo('bar') and getFoo(), which you DON'T have to create (in your class). GetSetGo will make these methods work for you automatically as long as you have a $foo property in your class. It makes use of Traits, so using it is super simple, you don't have to extend any class, as you can extend a single class only,...

Laravel 4 Uses Lots of Static, Not True.

Most of the time developers blame Laravel for using too much static. This claim is not true in case of Laravel 4, lets dig in and discuss why and how. What is static? In PHP you call it like this Class::$property. As the name suggests, it preserves the state. Static variables preserve their values across the lifetime of the running application(in our case request). In a class if a static property is declared it becomes the property of the CLASS itself, NOT the property of...

Muhammad Usman Muhammad Usman, from Sylhet, Bangladesh physically and in all over the web virtually, love creating complex web applications with rich UI. PHP and JavaScript (mostly Laravel and jQuery) are my passion. more