scalar_objects
Extension that adds support for method calls on primitive types in PHP
scalar_objects is a PHP extension that adds experimental method-call support for primitive values. It lets developers register handler classes for primitive types such as strings, arrays, integers, booleans, floats, null values, and resources. After registration, a primitive value can call methods through object-like syntax, such as calling a length method on a string. The project is mainly a proof of concept for designing cleaner primitive-type APIs in PHP. It allows API ideas to be...