Continuous Integrate your Security

Continuous Integrate your Security

Continuous Integration can automate your whole development workflow. Beyond the standard tasks like running automated unit tests, checking quality of the code and at the end, building your code, it can do anything you can imagine.

In the article I’ll show you how to integrate security testing into your CI. Automatic checks will find out if libraries you are using in your project are affected to the known security vulnerabilities.

Continue reading…

Validation constraint for Twig Template syntax

Symfony

Creating custom validation constraint could be tricky for new Symfony2 developers. Based on the idea of validating Twig syntax I’ll show you how to create custom validator with DI dependencies.

Imagine that you want to allow to edit templates through your administration panel – it’s common task in CMS, E-shop engines. To avoid errors while compiling templates (source syntax errors) you have to validate posted template source.

To accomplish that we’ll create our own configurable Validation Constraint.

Continue reading…