PHP library for reading iPhoto '11 .photolibrary packages. Since v1.1.0, it includes caching capabilities (using Zend\Cache) for relatively large photo libraries.
PhotoLibrary is PSR-0, PSR-1 and PSR-2 compliant.
Semantic Versioning is used for releases / tags.
- PHP 5.3 or newer
- The CFPropertyList library
The easiest way to install is using Composer / Packagist by adding this to you composer.json
file:
"require": {
"robbertkl/photolibrary": "1.*"
}
Alternatively, you could manually include/autoload the appriate files from the classes/
dir.
See the examples/ dir for usage examples. Also, check out the API documentation, generated using ApiGen.
- PhotoLibrary is still very basic (just covers my own needs for now), but could be easily extended
- PhotoLibrary could use more error checking / input handling
- Currently supports iPhoto '11 libraries only (which includes the new iPhoto released September 2013)
- Reading a reasonably filled iPhoto library can take some time and use up quite some memory (due to a large AlbumData.xml plist file)
- Robbert Klarenbeek, [email protected]
PhotoLibrary is published under the MIT License.