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\Logger
that returns aZend\Log\Logger
object that writes errors to disk and also to the PHP stream in development modePixelDomain\Controller\AbstractActionController
that provides utility functionsgetEntityManager()
andgetLogger()
so the Doctrine Entity Manager and PixelDomain Logger objects can be accessed via the Service ManagerPixelDomain\Entity\AbstractEntity
andPixelDomain\EntityRepository\AbstractEntityRepository
that extend Doctrine, adding in magic getter and setter methods (for the Entity) as well as other utility methods such asgetArrayCopy()
andpopulate()
PixelDomain\Mail\Sendgrid
that extends the Zend\Mail SMTP transport to use Sendgrid's SMTP servers by defaultPixelDomain\Service\AbstractService
that 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
data
directory recursively writable by the web server - Copy
config/autoload/local.php.dist
toconfig/autoload/local.php