My Account Log in

3 options

PHP 7 programming blueprints : develop production-ready web applications with PHPBlueprints / Jose Palala, Martin Helmich.

EBSCOhost Academic eBook Collection (North America) Available online

View online

Ebook Central College Complete Available online

View online

O'Reilly Online Learning: Academic/Public Library Edition Available online

View online
Format:
Book
Author/Creator:
Palala, Jose, author.
Helmich, Martin, author.
Series:
Community experience distilled.
Community Experience Distilled
Language:
English
Subjects (All):
PHP (Computer program language).
Web applications--Development.
Web applications.
Web site development.
Physical Description:
1 online resource (316 pages) : illustrations (some color).
Edition:
1st edition
Place of Publication:
Birmingham, England : Packt Publishing, 2016.
System Details:
text file
Biography/History:
Palala Jose: Jose Palala has been working professionally with PHP for at least 8 years. He has experience working with PHP frameworks such as Eden PHP, CodeIgniter, Laravel and Zend. He has worked for Philippine-based IT companies for at least 8 years, working on projects ranging from internal corporate systems and CMS websites. In his spare time, he regularly contributes back to the tech community in the Philippines. Helmich Martin: Martin Helmich studied computer science at the University of Applied Sciences in Osnabruck and lives in Rahden, Germany. He works as a software architect, specializing in building distributed applications using web technologies and Microservice Architectures. Besides programming in Go, PHP, Python, and Node. js, he also builds infrastructures using configuration management tools such as SaltStack and container technologies such as Docker and Kubernetes. He is an open source enthusiast and likes to make fun of people who are not using Linux. In his free time, you'll probably find him coding on one of his open source pet projects, listening to music, or reading science fiction literature.
Summary:
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.'
Contents:
Cover
Copyright
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Table of Contents
Preface
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
Raw query method
Create method
Read method
Select all method
Delete method
Update method
first_of method
last_of method
iterate_over method
searchString method
Using the convert_to_json method to implement a simple API
Shopping Cart
Building the shopping items list
Item template rendering function
Adding checkboxes to the Shopping List page
Cookies in PHP
Building the Checkout page
Thank you page
Installing TCPDF
Admin for managing purchases
Chapter 3: Building a Social Newsletter Service
Authentication system
Creating a social login for members
Member dashboard
Marketers dashboard
Administration system for managing marketers
Custom template for our newsletter
Link tracking
AJAX socket chat for support
Introduction to socket.io
Chapter 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
Building a PHP Elasticsearch tool
Adding documents to our Elasticsearch
Querying Elasticsearch
Installing Logstash
Setting up the Logstash configuration
Installing PHP Redis
Encoding and decoding JSON messages
Storing Apache logs in Elasticsearch
Getting filtered data to display with Highcharts
Dashboard app for viewing Elasticsearch logs.
Simple search engine with result caching
Cache basics
Cache invalidation of Redis data
Using browser localStorage as cache
Working with streams
Storing and searching XML documents using PHP
Using Elasticsearch to search a social network database
Displaying randomized search engine results
Chapter 5: Creating a RESTful Web Service
RESTful basics
REST architectures
Common HTTP methods and response codes
First steps with the Slim framework
Installing Slim
A small sample application
Accepting URL parameters
Accepting HTTP requests with a message body
The PSR-7 standard
Middleware
Implementing the REST service
Designing the service
Bootstrapping the project
Building the persistence layer with MongoDB
Adding and retrieving users
Listing and searching users
Deleting profiles
Validating input
Streams and large files
Profile image upload
Using GridFS storage
Chapter 6: Building a Chat Application
The WebSocket protocol
First steps with Ratchet
Architectural considerations
Getting started
Testing WebSocket applications
Playing with the event loop
Implementing the chat application
Bootstrapping the project server-side
Bootstrapping the HTML user interface
Building a simple chat application
Receiving messages
Sending messages
Testing the application
Keeping the connection from timing out
Deployment options
Bridging Ratchet and PSR-7 applications
Accessing your application via the web server
Adding authentication
Creating the login form
Checking the authorization
Connecting users and messages
Chapter 7: Building an Asynchronous Microservice Architecture
The target architecture
ZeroMQ patterns
Request/reply pattern
Publish/subscribe pattern
Push/pull pattern.
Bootstrapping the project
Building the inventory service
Getting started with ZeroMQ REQ/REP sockets
Using JsonRPC for communication
Making the inventory service multithreaded
Building the checkout service
Using react/zmq
Working with promises
Building the mailing service
Building the shipping service
PUSH/PULL for beginners
Fan-out/fan-in
Bridging ZeroMQ and HTTP
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
Comparisons
The "and" and "or" operators
Conditions
Working with structured data
Working with objects
Optimizing the interpreter by adding a compiler
Verifying performance improvements
Chapter 9: Reactive Extensions in PHP
An introduction to observables
Introduction to event loop and ReactiveX
delay
defer
Scheduler
recursive-scheduler
map and flatMap
reduce
toArray
merge
do
scan
zip
Parsing logs through a Reactive scheduler
Event queues with ReactiveX
Index.
Notes:
Includes index.
Description based on online resource; title from PDF title page (ebrary, viewed March 1, 2017).
ISBN:
9781785885242
1785885243
OCLC:
966104771

The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.

Find

Home Release notes

My Account

Shelf Request an item Bookmarks Fines and fees Settings

Guides

Using the Find catalog Using Articles+ Using your account