cosninix / cos
Very legacy collection of various utility functions
Installs: 1 592
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^7|^8
- illuminate/support: ^5.0|^6.0|^7.0|^8.0|^9.0|^10.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.16
- orchestra/testbench: ^3.4
- phpmd/phpmd: ^2.8
- phpunit/phpunit: ^7.5
README
Why?
Cos goes way back to the 80's when it was called coslib and written in C. It was converted into PHP 3 somewhere in the 90's, then it turned into a class with static methods in the 2000's (PHP 4), and survives now on PHP 7 just because so much (legacy) code still depends on it. It contains various obsolete functions that are now replaced by language constructs, like Cos::ifset() that is now replaced bij the ?? operator in PHP 7.
Don't use it in new projects but still fun to use as a time machine into the 80's
Installation
composer install cosninix/cos
Docs
As Boele used to say: No need for documentation because a good developer should be able to read code.