Books: 4

PHPUnit

CoverTitleYear
KEY FEATURES * Develop an interesting multiplayer browser game written in RxJS and re-implement it using RxPHP * Enhance existing reactive applications by building a CLI tool combining Symfony Console * Implement Gearman and Rabbit MQ for asynchronous communication BOOK DESCRIPTION Reactive Programming more » helps us write code that is concise, clear, and readable. Combining the power of reactive programming and PHP, one of the most widely used languages, will enable you to create web applications more pragmatically. PHP Reactive Programming will teach you the benefits of reactive programming via real-world examples with a hands-on approach. You will create multiple projects showing RxPHP in action alone and in combination with other libraries. The book starts with a brief introduction to reactive programming , clearly explaining the importance of building reactive applications. You will use the RxPHP library, built a reddit CLI using it, and also re-implement the Symfony3 Event Dispatcher with RxPHP. You will learn how to test your RxPHP code by writing unit tests. Moving on to more interesting aspects, you will implement a web socket backend by developing a browser game. You will learn to implement quite complex reactive systems while avoiding pitfalls such as circular dependencies by moving the RxJS logic from the frontend to the backend. The book will then focus on writing extendable RxPHP code by developing a code testing tool and also cover Using RxPHP on both the server and client side of the application. With a concluding chapter on reactive programming practices in other languages, this book will serve as a complete guide for you to start writing reactive applications in PHP. WHAT YOU WILL LEARN * How to work with the RxPHP library and see what it offers via many examples * Use the RxPHP library in combination with Symfony Console * The different approaches to using Symfony3's Event Dispatcher component * Test your reactive PHP code using PHPUnit * Analyze PHP source code and apply a custom set of rules by building a CLI tool « less
2017
A Framework for Building Modern PHP Apps
What sets Laravel apart from other PHP web frameworks? Speed and simplicity, for starters. This rapid application development framework and its vast ecosystem of tools let you quickly build new sites and applications with clean, readable code. With this practical guide, Matt Stauffer--a leading teacher more » and developer in the Laravel community--provides the definitive introduction to one of today's most popular web frameworks. The book's high-level overview and concrete examples will help experienced PHP web developers get started with Laravel right away. By the time you reach the last page, you should feel comfortable writing an entire application in Laravel from scratch. Dive into several features of this framework, including: * Blade, Laravel's powerful, custom templating tool * Tools for gathering, validating, normalizing, and filtering user-provided data * Laravel's Eloquent ORM for working with the application's databases * The Illuminate request object, and its role in the application lifecycle * PHPUnit, Mockery, and PHPSpec for testing your PHP code * Laravel's tools for writing JSON and RESTful APIs * Interfaces for file system access, sessions, cookies, caches, and search * Tools for implementing queues, jobs, events, and WebSocket event publishing * Laravel's specialty packages: Scout, Passport, Cashier, Echo, Elixir, Valet, and Socialite « less
2016
Writing PHP Microservices, REST and Web Service APIs
Learn to write test-driven microservices, REST APIs, and web service APIs with PHP using the Lumen micro-framework, from the now popular Laravel family. This book shows you how testing APIs can help you write bullet-proof web application services and microservices. In the Lumen Programming Guide you more » will learn how to use Lumen―a micro-framework by Laravel―to write bullet-proof APIs. Lumen helps you write productive, maintainable APIs using modern application design. You will learn how to write fully-tested APIs and understand essential Lumen concepts used to build a solid foundation for writing API projects. What You Will Learn * Maintain your API's database structure through built-in database migrations * Write tests with factory data in a test database * Respond with consistent data output in JSON * Deal with PHP exceptions by using JSON responses * Create, read, update, and delete REST resources * Represent model associations in API responses * Build a solid foundation for writing tests with PHPUnit and Mockery * Validate data Who This Book Is For PHP developers with no Laravel experience. Only a basic understanding of HTTP and writing PHP applications is needed to get started. « less
2016
"The Grumpy Programmer's PHPUnit Cookbook" is a collection of tips and tricks for making PHPUnit do what you need in order to write tests for your code. With the information contained in this book you will get a jump start to make writing tests something you do effortlessly.
2013