PHP 7 Programming Blueprints

Learn how to exploit the impressive power of PHP 7 with this collection of practical project blueprints – begin building better applications for the web today!
Preview in Mapt

PHP 7 Programming Blueprints

Jose Palala, Martin Helmich

1 customer reviews
Learn how to exploit the impressive power of PHP 7 with this collection of practical project blueprints – begin building better applications for the web today!
Mapt Subscription
FREE
$29.99/m after trial
eBook
$25.20
RRP $35.99
Save 29%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$25.20
$44.99
$29.99 p/m after trial
RRP $35.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


PHP 7 Programming Blueprints Book Cover
PHP 7 Programming Blueprints
$ 35.99
$ 25.20
PHP 7: Real World Application Development Book Cover
PHP 7: Real World Application Development
$ 69.99
$ 49.00
Buy 2 for $35.00
Save $70.98
Add to Cart

Book Details

ISBN 139781785889714
Paperback320 pages

Book Description

When it comes to modern web development, performance is everything. The latest version of PHP has been improvised and updated to make it easier to build for performance, improved engine execution, better memory usage, and a new and extended set of tools. If you’re a web developer, what’s not to love? This guide will show you how to make full use of PHP 7 with a range of practical projects that will not only teach you the principles, but also show you how to put them into practice. It will push and extend your skills, helping you to become a more confident and fluent PHP developer.

You’ll find out how to build a social newsletter service, a simple blog with a search capability using Elasticsearch, as well as a chat application. We’ll also show you how to create a RESTful web service, a database class to manage a shopping cart on an e-commerce site and how to build an asynchronous microservice architecture.

With further guidance on using reactive extensions in PHP, we’re sure that you’ll find everything you need to take full advantage of PHP 7. So dive in now!

Table of Contents

Chapter 1: Create a User Profile System and use the Null Coalesce Operator
The null coalesce operator
Separation of Concerns
Creating views
Create a profile input form
Admin system
Summary
Chapter 2: Build a Database Class and Simple Shopping Cart
Building the database abstraction class
Shopping Cart
Installing TCPDF
Admin for managing purchases
Summary
Chapter 3: Building a Social Newsletter Service
Authentication system
Summary
Chapter 4: Build a Simple Blog with Search Capability using Elasticsearch
Creating the CRUD and admin system
Chapter 5: Creating a RESTful Web Service
RESTful basics
First steps with the Slim framework
Implementing the REST service
Streams and large files
Summary
Chapter 6: Building a Chat Application
The WebSocket protocol
First steps with Ratchet
Implementing the chat application
Deployment options
Bridging Ratchet and PSR-7 applications
Accessing your application via the web server
Adding authentication
Summary
Chapter 7: Building an Asynchronous Microservice Architecture
The target architecture
ZeroMQ patterns
Bootstrapping the project
Building the inventory service
Making the inventory service multithreaded
Building the checkout service
Building the mailing service
Building the shipping service
Bridging ZeroMQ and HTTP
Summary
Chapter 8: Building a Parser and Interpreter for a Custom Language
How interpreters and compilers work
Languages and grammars
Your first PEG parser
Evaluating expressions
Building an Abstract Syntax Tree
Building a better interface
Evaluating variables
Adding logical expressions
Working with structured data
Working with objects
Optimizing the interpreter by adding a compiler
Verifying performance improvements
Summary
Chapter 9: Reactive Extensions in PHP
An introduction to observables
Introduction to event loop and ReactiveX
Parsing logs through a Reactive scheduler
Event queues with ReactiveX
Summary

What You Will Learn

  • Build versatile projects using the newest features PHP 7 has to offer
  • Learn how to use PHP 7’s event-driven asynchronous features
  • Find out how to improve the performance of your code with effective techniques and design patterns
  • Get to grips with backend development and find out how to optimize session handling
  • Learn how to use the PHP 7 Abstract Syntax Tree to improve the quality of your code and make it more maintainable
  • Find out how to build a RESTful web service
  • Build your own asynchronous microservice

Authors

Table of Contents

Chapter 1: Create a User Profile System and use the Null Coalesce Operator
The null coalesce operator
Separation of Concerns
Creating views
Create a profile input form
Admin system
Summary
Chapter 2: Build a Database Class and Simple Shopping Cart
Building the database abstraction class
Shopping Cart
Installing TCPDF
Admin for managing purchases
Summary
Chapter 3: Building a Social Newsletter Service
Authentication system
Summary
Chapter 4: Build a Simple Blog with Search Capability using Elasticsearch
Creating the CRUD and admin system
Chapter 5: Creating a RESTful Web Service
RESTful basics
First steps with the Slim framework
Implementing the REST service
Streams and large files
Summary
Chapter 6: Building a Chat Application
The WebSocket protocol
First steps with Ratchet
Implementing the chat application
Deployment options
Bridging Ratchet and PSR-7 applications
Accessing your application via the web server
Adding authentication
Summary
Chapter 7: Building an Asynchronous Microservice Architecture
The target architecture
ZeroMQ patterns
Bootstrapping the project
Building the inventory service
Making the inventory service multithreaded
Building the checkout service
Building the mailing service
Building the shipping service
Bridging ZeroMQ and HTTP
Summary
Chapter 8: Building a Parser and Interpreter for a Custom Language
How interpreters and compilers work
Languages and grammars
Your first PEG parser
Evaluating expressions
Building an Abstract Syntax Tree
Building a better interface
Evaluating variables
Adding logical expressions
Working with structured data
Working with objects
Optimizing the interpreter by adding a compiler
Verifying performance improvements
Summary
Chapter 9: Reactive Extensions in PHP
An introduction to observables
Introduction to event loop and ReactiveX
Parsing logs through a Reactive scheduler
Event queues with ReactiveX
Summary

Book Details

ISBN 139781785889714
Paperback320 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

PHP 7: Real World Application Development Book Cover
PHP 7: Real World Application Development
$ 69.99
$ 49.00
Modular Programming with PHP 7 Book Cover
Modular Programming with PHP 7
$ 39.99
$ 28.00
Building RESTful Python Web Services Book Cover
Building RESTful Python Web Services
$ 39.99
$ 28.00
Beginning C++ Game Programming Book Cover
Beginning C++ Game Programming
$ 39.99
$ 28.00
Mastering Web Application Development with AngularJS Book Cover
Mastering Web Application Development with AngularJS
$ 26.99
$ 5.40
Object-Oriented Programming with PHP5 Book Cover
Object-Oriented Programming with PHP5
$ 23.99
$ 16.80