Development & technology · PHP & Laravel/Symfony

AI training for PHP Developers

PHP powers a large share of the web – from Laravel and Symfony applications to Shopware and Magento stores and bespoke platforms that have evolved over many years. As a result, modern framework projects frequently sit alongside legacy code without types, tests or Composer structure. AI coding assistants and agents help on both fronts: they write PHPUnit and Pest tests, bring code up to modern language standards with Rector, work through PHPStan findings level by level, generate Eloquent or Doctrine models with migrations and explain tangled legacy logic. The prerequisite is good context on framework conventions, coding standards and the test environment. This course teaches you to use agents so that modernisation becomes predictable and safe.

Who is this course for?

  • PHP developers working with Laravel or Symfony
  • Developers of e-commerce systems such as Shopware or Magento
  • Agency teams juggling many client projects in parallel
  • Teams modernising legacy PHP applications

Typical challenges we address

  • Legacy code without type declarations, namespaces or automated tests
  • Laborious upgrades of PHP versions and major framework releases
  • Security risks from SQL injection, XSS and unsafe file uploads in old code
  • Tight deadlines on agency projects combined with high quality expectations

Practical scenarios from your field

Generating PHPUnit and Pest tests

The agent writes unit and feature tests for controllers, services and models, uses factories and database transactions, and runs the tests iteratively until they pass consistently.

Raising PHPStan levels step by step

The AI works through static analysis findings systematically, adds type declarations, generics annotations and return types, and raises the analysis level in controlled steps without changing behaviour.

Upgrades with Rector

Rector rules are configured and run, remaining incompatibilities in PHP or framework upgrades are fixed by hand and deprecations surfaced in logs and tests are cleared systematically.

Building Laravel and Symfony features

From a functional description, the assistant creates migrations, Eloquent or Doctrine entities, form requests or validators, controllers, policies and tests – all in line with framework conventions.

Understanding and untangling legacy code

The assistant explains procedural legacy logic, extracts functions into namespaced classes and introduces Composer autoloading, laying the groundwork for further modernisation. Characterisation tests pin down the existing behaviour first.

Finding security vulnerabilities

The AI checks code for unsafe SQL queries, missing output escaping, CSRF gaps and insecure uploads, replacing problem areas with prepared statements and built-in framework mechanisms.

Possible hands-on projects

Laravel admin panel

A small management back end with authentication, roles, CRUD screens and feature tests, built by an AI agent from a short specification.

Symfony console importer

A Symfony console command that validates CSV or XML data, imports it into Doctrine entities and logs errors in a clear, readable way.

Upgrade readiness check

A script that runs PHPStan, a Rector dry run and Composer audit against a PHP project and produces a plain-language report on upgrade effort.

Data protection & compliance

PHP applications frequently process customer data from shops and portals, so database dumps and logs containing personal data must never go into prompts unfiltered. Check new Composer packages for licence and vulnerabilities, keep credentials from .env files out of context and, as an agency, agree contractually whether client code may be processed by AI services.

Prerequisites

Solid PHP skills and experience with Laravel or Symfony, Composer and Git.

Frequently asked questions

Is AI-assisted coding worthwhile for old PHP code without a framework?

That is exactly where it shines. AI assistants explain convoluted procedural logic, write characterisation tests that pin down existing behaviour and then introduce namespaces, autoloading and types step by step. This gives you a safe foundation for modernising legacy applications instead of attempting a risky full rewrite.

How should agencies handle client code and AI?

Agencies should agree with their clients contractually whether, and with which services, source code may be processed. On the course we discuss options such as business licences with no training on your data, exclusion rules for sensitive files and documented review processes that give your clients full transparency.

Request without obligation

We will get back to you within one working day with a confirmation or an alternative suggestion.

Format *
Total €949 plus VAT