browscap/browscap-php — pull request #42 by mimmi20 (2014-08-02 20:22:04+00:00)
Title: Refactoring

This is a proposal for the next version of browscap-php and is inspired by crossjoin/Browscap and tobie/ua-parser.

The changes I made:

1. I removed the autoupdate function.
2. I added 5 cli commands for fetching a browscap.ini file, converting into a cache, parsing useragents and scanning log files
3. For loading the ini files I used an external library which I splitted from phpbrowscap some time ago
4. As cache I used an external library which I spliited from the wurfl project some time ago (So other caches than a file cache are possible)
5. I switched the autoloading from PSR-0 to PSR-4
6. I splitted the files to decrease the complexity