PHP 8 Programming Tips, Tricks and Best Practices: A practical guide to PHP 8 features, usage changes, and advanced programming techniques
暫譯: PHP 8 程式設計技巧、竅門與最佳實踐:PHP 8 功能、使用變更及進階程式設計技術的實用指南
Doug Bierer (Author)
- 出版商: Packt Publishing
- 出版日期: 2021-08-27
- 售價: $2,220
- 貴賓價: 9.5 折 $2,109
- 語言: 英文
- 頁數: 528
- 裝訂: Quality Paper - also called trade paper
- ISBN: 180107187X
- ISBN-13: 9781801071871
-
相關分類:
PHP
海外代購書籍(需單獨結帳)
商品描述
Key Features
- Get the hang of all the new features introduced in PHP 8
- Learn how to detect potential code breaks and keep your application code running smoothly in PHP 8
- Explore an exciting new trend - asynchronous PHP programming using Swoole and Fibers
Book Description
Thanks to its ease of use, PHP is a highly popular programming language used on over 78% of all web servers connected to the Internet. PHP 8 Programming Tips, Tricks, and Best Practices will help you to get up-to-speed with PHP 8 quickly. The book is intended for any PHP developer who wants to become familiar with the cool new features available in PHP 8, and covers areas where developers might experience backward compatibility issues with their existing code after a PHP 8 update. The book thoroughly explores best practices, and highlights ways in which PHP 8 enforces these practices in a much more rigorous fashion than its earlier versions.
You'll start by exploring new PHP 8 features in the area of object-oriented programming (OOP), followed by enhancements at the procedural level. You'll then learn about potential backward compatible breaks and discover best practices for improving performance. The last chapter of the book gives you insights into PHP async, a revolutionary new way of programming, by providing detailed coverage and examples of asynchronous programming using the Swoole extension and Fibers.
By the end of this PHP book, you'll not only have mastered the new features, but you'll also know exactly what to watch out for when migrating older PHP applications to PHP 8.
What you will learn
- Gain a comprehensive understanding of the new PHP 8 object-oriented features
- Discover new PHP 8 procedural programming enhancements
- Understand improvements in error handling in PHP 8
- Identify potential backward compatibility issues
- Avoid traps due to changes in PHP extensions
- Find out which features have been deprecated and/or removed in PHP 8
- Become well-versed with programming best practices enforced by PHP 8
Who this book is for
This book is for PHP developers at all levels who have experience in PHP 5 or above. If you're just getting started with PHP, you'll find the code examples useful for learning the language. Developers who have worked for a few months on one or more PHP projects will be able to apply the tips and techniques to the code at hand, while those with many years of PHP experience are sure to appreciate the concise coverage of new PHP 8 features.
商品描述(中文翻譯)
**主要特點**
- 熟悉 PHP 8 中引入的所有新功能
- 學習如何檢測潛在的代碼中斷,並保持您的應用程式代碼在 PHP 8 中順利運行
- 探索一個令人興奮的新趨勢 - 使用 Swoole 和 Fibers 的非同步 PHP 程式設計
**書籍描述**
由於其易用性,PHP 是一種非常受歡迎的程式語言,使用於超過 78% 連接到互聯網的所有網頁伺服器。PHP 8 程式設計技巧、竅門與最佳實踐 將幫助您快速掌握 PHP 8。本書適合任何希望熟悉 PHP 8 中新功能的 PHP 開發者,並涵蓋開發者在 PHP 8 更新後可能遇到的向後相容性問題。本書深入探討最佳實踐,並強調 PHP 8 如何以比早期版本更嚴格的方式強制執行這些實踐。
您將首先探索 PHP 8 在物件導向程式設計 (OOP) 領域的新功能,接著是程序層面的增強。然後,您將學習潛在的向後相容性中斷,並發現改善性能的最佳實踐。本書的最後一章將深入介紹 PHP 非同步,這是一種革命性的程式設計方式,提供有關使用 Swoole 擴展和 Fibers 的非同步程式設計的詳細說明和範例。
在這本 PHP 書籍結束時,您不僅會掌握新功能,還會清楚在將舊的 PHP 應用程式遷移到 PHP 8 時需要注意的事項。
**您將學到什麼**
- 獲得對 PHP 8 新的物件導向功能的全面理解
- 發現新的 PHP 8 程序程式設計增強
- 理解 PHP 8 中錯誤處理的改進
- 確認潛在的向後相容性問題
- 避免因 PHP 擴展變更而造成的陷阱
- 找出在 PHP 8 中已被棄用和/或移除的功能
- 熟悉 PHP 8 強制執行的程式設計最佳實踐
**本書適合誰**
本書適合所有級別的 PHP 開發者,前提是有 PHP 5 或以上的經驗。如果您剛開始接觸 PHP,您會發現代碼範例對學習這門語言非常有用。已經在一個或多個 PHP 專案上工作幾個月的開發者將能夠將這些技巧和技術應用於手頭的代碼,而擁有多年 PHP 經驗的人則一定會欣賞對新 PHP 8 功能的簡明介紹。
作者簡介
Doug Bierer has been hooked on computers since his first program, written on a DEC PDP-8, in 1971. In his wide-ranging career, he has been a professional contract programmer since 1978, having written applications in BASIC, PL/I, assembler, FORTH, C, C++, dBase/FoxBase/Clipper, Pascal, Perl, Java, and PHP. He deployed his first website in 1993 while living in San Francisco. He speaks four languages, has traveled extensively, and now resides in Thailand. He also spent some years doing system administration and TCP/IP networking. Some of his technical works include PHP 7 Programming Cookbook and Learning MongoDB 4.x (Packt), as well as Learning PHP and MySQL, Learning PHP Security and Learning Doctrine (O'Reilly Media).
作者簡介(中文翻譯)
道格·比爾爾(Doug Bierer)自1971年在DEC PDP-8上撰寫的第一個程式以來,就對電腦產生了濃厚的興趣。在他多元的職業生涯中,自1978年以來,他一直是一名專業的合約程式設計師,撰寫過的應用程式包括BASIC、PL/I、組合語言、FORTH、C、C++、dBase/FoxBase/Clipper、Pascal、Perl、Java和PHP。他在1993年於舊金山生活時部署了他的第一個網站。他會說四種語言,曾廣泛旅行,現在居住在泰國。他還花了幾年時間從事系統管理和TCP/IP網路工作。他的一些技術著作包括PHP 7程式設計食譜和學習MongoDB 4.x(Packt),以及學習PHP和MySQL、學習PHP安全性和學習Doctrine(O'Reilly Media)。
目錄大綱
- Introducing New PHP 8 OOP Features
- Learning about PHP 8's Functional Additions
- Taking Advantage of Error-Handling Enhancements
- Making Direct C-Language Calls
- Discovering Potential OOP Backward-Compatibility Breaks
- Understanding PHP 8 Functional Differences
- Avoiding Traps When Using PHP 8 Extensions
- Learning about PHP 8's Deprecated or Removed Functionality
- Mastering PHP 8 Best Practices
- Improving Performance
- Migrating Existing PHP Apps to PHP 8
- Creating PHP 8 Applications Using Asynchronous Programming
目錄大綱(中文翻譯)
- Introducing New PHP 8 OOP Features
- Learning about PHP 8's Functional Additions
- Taking Advantage of Error-Handling Enhancements
- Making Direct C-Language Calls
- Discovering Potential OOP Backward-Compatibility Breaks
- Understanding PHP 8 Functional Differences
- Avoiding Traps When Using PHP 8 Extensions
- Learning about PHP 8's Deprecated or Removed Functionality
- Mastering PHP 8 Best Practices
- Improving Performance
- Migrating Existing PHP Apps to PHP 8
- Creating PHP 8 Applications Using Asynchronous Programming