Learning PHP 7 High Performance

Improve the performance of your PHP application to ensure the application users aren't left waiting

Learning PHP 7 High Performance

This ebook is included in a Mapt subscription
Altaf Hussain

Improve the performance of your PHP application to ensure the application users aren't left waiting
$10.00
$39.99
RRP $31.99
RRP $39.99
eBook
Print + eBook
Preview in Mapt

Book Details

ISBN 139781785882265
Paperback202 pages

Book Description

PHP is a great language for building web applications. It is essentially a server-side scripting language that is also used for general-purpose programming. PHP 7 is the latest version, providing major backward-compatibility breaks and focusing on high performance and speed.

This fast-paced introduction to PHP 7 will improve your productivity and coding skills. The concepts covered will allow you, as a PHP programmer, to improve the performance standards of your applications. We will introduce you to the new features in PHP 7 and then will run through the concepts of object-oriented programming (OOP) in PHP 7. Next, we will shed some light on how to improve your PHP 7 applications' performance and database performance. Through this book, you will be able to improve the performance of your programs using the various benchmarking tools discussed.

At the end, the book discusses some best practices in PHP programming to help you improve the quality of your code.

Table of Contents

Chapter 1: Setting Up the Environment
Setting up Windows
Setting up Debian or Ubuntu
Setting up CentOS
Setting up Vagrant
Summary
Chapter 2: New Features in PHP 7
OOP features
New operators
Uniform variable syntax
Miscellaneous features and changes
Summary
Chapter 3: Improving PHP 7 Application Performance
NGINX and Apache
HTTP server optimization
HTTP persistent connection
Content Delivery Network (CDN)
CSS and JavaScript optimization
Full page caching
Varnish
The infrastructure
Summary
Chapter 4: Improving Database Performance
The MySQL database
Storage engines
The Percona Server - a fork of MySQL
MySQL performance monitoring tools
Percona XtraDB Cluster (PXC)
Redis – the key-value cache store
Memcached key-value cache store
Summary
Chapter 5: Debugging and Profiling
Xdebug
Profiling with Xdebug
PHP DebugBar
Summary
Chapter 6: Stress/Load Testing PHP Applications
Apache JMeter
ApacheBench (ab)
Siege
Load testing real-world applications
Summary
Chapter 7: Best Practices in PHP Programming
Coding styles
Test-driven development (TDD)
Design patterns
Service-oriented architecture (SOA)
Being object-oriented and reusable always
PHP frameworks
Version control system (VCS) and Git
Deployment and Continuous Integration (CI)
Summary

What You Will Learn

  • Setup high performance development and production environment for PHP 7
  • Discover new OOP features in PHP 7 to achieve high performance
  • Improve your PHP applications' performance
  • Attain improved database performance
  • Benchmark PHP applications to optimize them
  • Write quality code by learning to improve code reusability, simplicity, and expressiveness
  • Get rid of the bottlenecks in your PHP 7 applications by writing PHP code optimally
  • Tackle issues related to web applications, such as high user dependency and large datasets

Authors

Table of Contents

Chapter 1: Setting Up the Environment
Setting up Windows
Setting up Debian or Ubuntu
Setting up CentOS
Setting up Vagrant
Summary
Chapter 2: New Features in PHP 7
OOP features
New operators
Uniform variable syntax
Miscellaneous features and changes
Summary
Chapter 3: Improving PHP 7 Application Performance
NGINX and Apache
HTTP server optimization
HTTP persistent connection
Content Delivery Network (CDN)
CSS and JavaScript optimization
Full page caching
Varnish
The infrastructure
Summary
Chapter 4: Improving Database Performance
The MySQL database
Storage engines
The Percona Server - a fork of MySQL
MySQL performance monitoring tools
Percona XtraDB Cluster (PXC)
Redis – the key-value cache store
Memcached key-value cache store
Summary
Chapter 5: Debugging and Profiling
Xdebug
Profiling with Xdebug
PHP DebugBar
Summary
Chapter 6: Stress/Load Testing PHP Applications
Apache JMeter
ApacheBench (ab)
Siege
Load testing real-world applications
Summary
Chapter 7: Best Practices in PHP Programming
Coding styles
Test-driven development (TDD)
Design patterns
Service-oriented architecture (SOA)
Being object-oriented and reusable always
PHP frameworks
Version control system (VCS) and Git
Deployment and Continuous Integration (CI)
Summary

Book Details

ISBN 139781785882265
Paperback202 pages
Read More

Read More Reviews