Share E-Book

AuthorDoug Bierer, Rainier Sarabia

PHP offers several powerful features, but many developers struggle to apply them effectively in real-world applications while maintaining performance, security, and code quality. This book addresses that challenge by combining modern PHP practices with generative AI to help you build faster and more reliably. You will work through hands-on recipes that show how to design, generate, and refine PHP 8 applications using AI alongside proven engineering techniques. From writing clean object-oriented code and designing scalable architectures to automating repetitive tasks, you will learn how to use AI as a development aid without losing control over quality. As you progress, you will optimize applications using OPcache, JIT, and async programming, while applying secure coding practices and modern design patterns. The book also explores real-world use cases, including REST APIs, microservices, WebSocket applications, and database-driven systems, helping you translate concepts into production-ready solutions. You will also learn how to modernize legacy PHP codebases, validate AI-generated code, and integrate testing workflows to improve reliability and maintainability. Additionally, you will understand how to enhance PHP websites by making API calls to GenAI platforms. By the end of this book, you will be able to combine PHP and generative AI effectively to build secure, high-performance applications ready for real-world deployment.

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

Tags
AI categories
Shown after the reading guide is generated (max 3)
ISBN: 1835889921
Publisher: Packt Publishing
Publish Year: 2026
Language: English
Pages: 480
File Format: PDF
File Size: 18.1 MB
Text Preview (First 20 pages)
Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Generating text preview…