The Pixel Domain ZF2 utility classes inherit from the base Zend framework providing helper functions to cut the amount of boilerplate code required.
Classes include:
PixelDomain\Log\Loggerthat returns aZend\Log\Loggerobject that writes errors to disk and also to the PHP stream in development modePixelDomain\Controller\AbstractActionControllerthat provides utility functionsgetEntityManager()andgetLogger()so the Doctrine Entity Manager and PixelDomain Logger objects can be accessed via the Service ManagerPixelDomain\Entity\AbstractEntityandPixelDomain\EntityRepository\AbstractEntityRepositorythat extend Doctrine, adding in magic getter and setter methods (for the Entity) as well as other utility methods such asgetArrayCopy()andpopulate()PixelDomain\Mail\Sendgridthat extends the Zend\Mail SMTP transport to use Sendgrid's SMTP servers by defaultPixelDomain\Service\AbstractServicethat provides utility functionsgetEntityManager()andgetLogger()so the Doctrine Entity Manager and PixelDomain Logger objects can be accessed via the Service Manager
This library should be used with the Pixel Domain ZF2 skeleton application which can be found here.
- Clone the skeleton application
- Install via composer
php composer.phar install. - Make the
datadirectory recursively writable by the web server - Copy
config/autoload/local.php.disttoconfig/autoload/local.php