PHP Cookbook: Solutions & Examples for PHP Programmers 2019
PHP Cookbook: Solutions & Examples for PHP Programmers
O Reilly Media
Want to understand a certain PHP programming technique? Or learn how to accomplish a particular task? This cookbook is the first place to look. With more than 350 code-rich recipes revised for PHP 5.4 and 5.5, this third edition provides updated solutions for generating dynamic web contentâ"everything from using basic data types to querying databases, and from calling RESTful APIs to testing and securing your site.
Each recipe includes code solutions that you can freely use, along with a discussion of how and why they work. Whether youâre an experienced PHP programmer or coming to PHP from another language, this book is an ideal on-the-job resource.
Youâll find recipes to help you with:
- Basic data types: strings, numbers, arrays, and dates and times
- Prog ram building blocks: variables, functions, classes, and objects
- Web programming: cookies, forms, sessions, and authentication
- Database access using PDO, SQLite, and other extensions
- RESTful API clients and servers, including HTTP, XML, and OAuth
- Key concepts: email, regular expressions, and graphics creation
- Designing robust applications: security and encryption, error handling, debugging and testing, and performance tuning
- Files, directories, and PHPâs Command Line Interface
- Libraries and package managers such as Composer and PECL
Want to understand a certain PHP programming technique? Or learn how to accomplish a particular task? This cookbook is the first place to look. With more than 350 code-rich recipes revised for PHP 5.4 and 5.5, this third edition provides updated solutions for generating dynamic web contentâ"everything from using basic data types to querying databases, and from calling RESTful APIs to testing and securing your site.
Each recipe includes code solutions that you can freely use, along with a discussion of how and why they work. Whether youâre an experienced PHP programmer or coming to PHP from another language, this book is an ideal on-the-job resource.
Youâll find recipes to help you with:
- Basic data types: strings, numbers, arrays, and dates and times
- Prog ram building blocks: variables, functions, classes, and objects
- Web programming: cookies, forms, sessions, and authentication
- Database access using PDO, SQLite, and other extensions
- RESTful API clients and servers, including HTTP, XML, and OAuth
- Key concepts: email, regular expressions, and graphics creation
- Designing robust applications: security and encryption, error handling, debugging and testing, and performance tuning
- Files, directories, and PHPâs Command Line Interface
- Libraries and package managers such as Composer and PECL
Another product that competes with the previous one is this REST APIs: Learn By Coding
If you're looking to build a REST API, this book can help you. In it, we walk you through building two API clients and three API servers. You'll code a basic API, an intermediate API, and finally a more complicated API.
You'll do this in the most popular PHP framework available today: Laravel. But it isn't necessary to know Laravel. You'll be able to follow along even if you aren't familiar with it. You can also take what you learn, and easily apply it to other languages and frameworks.
You will learn how to:
- design REST APIs
- make HTTP requests and responses
- return the proper HTTP codes
- install the Homestead virtual machine
- use Laravel's API routes, controllers, and resources
- protect your API with token-based security
- test your REST API with a Chrome extension
- and much, much more
The source code per chapter is available in a GitHub repository, so you can use that to save time as you lea rn how to build REST APIs.
Modern PHP: New Features and Good Practices 2019
ASUS LGA2011 5-way Optimization SafeSlot ATX Motherboard ROG STRIX X99 GAMING 2019
Post a Comment