Book description
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!
About This Book
Don’t just learn PHP 7 – follow a diverse range of practical knowledge to get started quickly
Take advantage of PHP 7’s newest features – and find out how to use them to solve real development challenges
Put PHP to work for performance and scalability – we’ll show you how, you do it!
Who This Book Is For
The book is for web developers, PHP consultants, and anyone who is working on multiple projects with PHP. Basic knowledge of PHP programming is assumed.
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
In Detail
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!
Style and approach
This product focuses on helping developers build projects from scratch. But more than that, each project will help the reader to learn a new facet or feature of PHP 7 – it means the reader really will ‘learn by doing.’
Table of contents
-
PHP 7 Programming Blueprints
- PHP 7 Programming Blueprints
- Credits
- About the Authors
- About the Reviewer
- www.PacktPub.com
- Preface
- 1. Create a User Profile System and use the Null Coalesce Operator
- 2. Build a Database Class and Simple Shopping Cart
- 3. Building a Social Newsletter Service
-
4. Build a Simple Blog with Search Capability using Elasticsearch
-
Creating the CRUD and admin system
- Seeding the post table
- What is Elasticsearch?
- Installing Elasticsearch and the PHP client
- Adding documents to our Elasticsearch
- Storing Apache logs in Elasticsearch
- Dashboard app for viewing Elasticsearch logs
- Simple search engine with result caching
- Cache basics
- Using browser localStorage as cache
- Working with streams
- Storing and searching XML documents using PHP
- Using Elasticsearch to search a social network database
- Summary
-
Creating the CRUD and admin system
- 5. Creating a RESTful Web Service
- 6. Building a Chat Application
- 7. Building an Asynchronous Microservice Architecture
-
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
- 9. Reactive Extensions in PHP
Product information
- Title: PHP 7 Programming Blueprints
- Author(s):
- Release date: October 2016
- Publisher(s): Packt Publishing
- ISBN: 9781785889714
You might also like
book
PHP Phrasebook: Essential Code and Commands
If you were traveling in Spain, but couldn't speak Spanish very well, you'd probably carry a …
book
PHP and MySQL™ Phrasebook
gives you the code you need to complete your web programming projects quickly and effectively in …
book
PHP Advanced for the World Wide Web: Visual QuickPro Guide
PHP is a server-side, HTML-embedded scripting language. ItÕs frequently being used to replace the functionality created …
book
Perl for Web Site Management
Checking links, batch editing HTML files, tracking users, and writing CGI scripts--these are the often tedious …