PHP 7 Programming Cookbook

Doug Bierer

  • 出版商: Packt Publishing
  • 出版日期: 2016-08-30
  • 售價: $2,170
  • 貴賓價: 9.5$2,062
  • 語言: 英文
  • 頁數: 610
  • 裝訂: Paperback
  • ISBN: 1785883445
  • ISBN-13: 9781785883446
  • 相關分類: PHP
  • 相關翻譯: PHP 7 編程實戰 (簡中版)
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

Over 80 recipes that will take your PHP 7 web development skills to the next level!

About This Book

  • This is the most up-to-date book in the market on PHP
  • It covers the new features of version 7.x, best practices for server-side programming, and MVC frameworks
  • The recipe-based approach will allow you to explore the unique capabilities that PHP offers to web programmers

Who This Book Is For

If you are an aspiring web developer, mobile developer, or backend programmer, then this book is for you as it will take your PHP programming skills to next level. Basic knowledge of PHP programming is assumed.

What You Will Learn

  • Use advanced PHP 7 features, such as the Abstract Syntax Tree, Uniform Variable Syntax, Scalar Type Hints, Generator Delegation, Anonymous Classes, and the Context Sensitive Lexer
  • Discover where and when PHP 5 code needs to be re-written to avoid backwards-compatibility breaks
  • Improve the overall application security and error handling by taking advantage of classes that implement the new throwable interface
  • Solve practical real-world programming problems using PHP 7
  • Develop middle-wareclasses that allow PHP developers to gluedifferent open source libraries together seamlessly
  • Define and Implement PSR-7 classes
  • Create custom middleware using PSR-7 compliant classes
  • Test and debug your code, and get to know the best practices

In Detail

PHP 7 comes with a myriad of new features and great tools to optimize your code and make your code perform faster than in previous versions. Most importantly, it allows you to maintain high traffic on your websites with low-cost hardware and servers through a multithreading web server.

This book demonstrates intermediate to advanced PHP techniques with a focus on PHP 7. Each recipe is designed to solve practical, real-world problems faced by PHP developers like yourself every day. We also cover new ways of writing PHP code made possible only in version 7. In addition, we discuss backward-compatibility breaks and give you plenty of guidance on when and where PHP 5 code needs to be changed to produce the correct results when running under PHP 7. This book also incorporates the latest PHP 7.x features.

By the end of the book, you will be equipped with the tools and skills required to deliver efficient applications for your websites and enterprises.

Style and approach

This book takes a recipe-based approach, with real-world examples that can serve as building blocks for a larger application. Each recipe is self-contained with no external dependencies. This book follows a problem-solution strategy so you understand how to deal with various scenarios you may encounter while using PHP 7 in your daily activities.

商品描述(中文翻譯)

超過80個食譜,將提升您的PHP 7網頁開發技能到更高的水平!

關於本書
這是市場上最新的PHP書籍
涵蓋了7.x版本的新功能,伺服器端程式設計的最佳實踐以及MVC框架
基於食譜的方法將讓您探索PHP為網頁程式設計師提供的獨特能力

本書適合對網頁開發、行動開發或後端程式設計有興趣的讀者,它將提升您的PHP程式設計技能。假設您具備基本的PHP程式設計知識。

您將學到什麼
使用高級的PHP 7功能,如抽象語法樹、統一變數語法、標量類型提示、生成器委派、匿名類和上下文敏感的語法分析器
了解何時何地需要重新編寫PHP 5代碼以避免向後兼容性問題
通過利用實現新的可拋異常接口的類來提高整體應用程式的安全性和錯誤處理能力
使用PHP 7解決實際的現實世界程式設計問題
開發中間件類,使PHP開發人員能夠無縫地將不同的開源庫結合在一起
定義和實現PSR-7類
使用符合PSR-7的類創建自定義中間件
測試和調試您的代碼,並了解最佳實踐

詳細內容
PHP 7帶來了許多新功能和優秀的工具,可以優化您的代碼並使其在之前的版本中運行更快。最重要的是,它允許您通過多線程網頁伺服器以低成本的硬體和伺服器維持高流量的網站。

本書演示了中級到高級的PHP技術,重點放在PHP 7上。每個食譜都旨在解決PHP開發人員每天都會遇到的實際問題。我們還介紹了在版本7中才有可能的新的PHP編寫方式。此外,我們還討論了向後兼容性問題,並提供了大量關於何時何地需要更改PHP 5代碼以在PHP 7下產生正確結果的指導。本書還包含了最新的PHP 7.x功能。

通過閱讀本書,您將具備為您的網站和企業交付高效應用程式所需的工具和技能。

風格和方法
本書採用基於食譜的方法,提供了可以作為更大應用程式的構建塊的實際範例。每個食譜都是獨立的,不依賴於外部依賴項。本書遵循問題解決策略,讓您了解如何處理在日常活動中使用PHP 7時可能遇到的各種情境。