Learning PHP 7

Antonio Lopez

  • 出版商: Packt Publishing
  • 出版日期: 2016-03-29
  • 售價: $2,130
  • 貴賓價: 9.5$2,024
  • 語言: 英文
  • 頁數: 414
  • 裝訂: Paperback
  • ISBN: 1785880543
  • ISBN-13: 9781785880544
  • 相關分類: PHP
  • 海外代購書籍(需單獨結帳)

買這商品的人也買了...

商品描述

Key Features

  • Set up the PHP environment and get started with web programming
  • Leverage the potential of PHP for server-side programming, memory management, and object-oriented programming (OOP)
  • This book is packed with real-life examples to help you implement the concepts as you learn

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 with a host of new features, and it provides major backwards-compatibility breaks.

This book begins with the fundamentals of PHP programming by covering the basic concepts such as variables, functions, class, and objects. You will set up PHP server on your machine and learn to read and write procedural PHP code. After getting an understanding of OOP as a paradigm, you will execute MySQL queries on your database. Moving on, you will find out how to use MVC to create applications from scratch and add tests. Then, you will build REST APIs and perform behavioral tests on your applications.

By the end of the book, you will have the skills required to read and write files, debug, test, and work with MySQL.

What you will learn

  • Set up a server on your machine with PHP
  • Use PHP syntax with the built-in server to create apps
  • Apply the OOP paradigm to PHP to write richer code
  • Use MySQL to manage data in your web applications
  • Create a web application from scratch using MVC
  • Add tests to your web application and write testable code
  • Use an existing PHP framework to build and manage your applications
  • Build REST APIs for your PHP applications
  • Test the behavior of web applications with Behat

About the Author

Antonio Lopez is a software engineer with more than 7 years of experience. He has worked with PHP since university, which was 10 years ago, building small personal projects. Later, Antonio started his journey around Europe, working in Barcelona, London, Dublin, and back in Barcelona. He has worked in a number of different areas, from web applications to REST APIs and internal tools. Antonio likes to spend his spare time on personal projects and start-ups and has a strong vocation in education and teaching.

Table of Contents

  1. Setting Up the Environment
  2. Web Applications with PHP
  3. Understanding PHP Basics
  4. Creating Clean Code with OOP
  5. Using Databases
  6. Adapting to MVC
  7. Testing Web Applications
  8. Using Existing PHP Frameworks
  9. Building REST APIs
  10. Behavioral Testing

商品描述(中文翻譯)

主要特點



  • 建立 PHP 環境並開始網頁程式設計

  • 充分利用 PHP 在伺服器端程式設計、記憶體管理和物件導向程式設計 (OOP) 方面的潛力

  • 本書充滿了實際範例,幫助您在學習的同時實踐概念

書籍描述


PHP 是一個用於建立網頁應用程式的優秀語言。它本質上是一種伺服器端腳本語言,也用於一般用途的程式設計。PHP 7 是最新版本,具有許多新功能,並提供了重大的向後相容性斷裂。


本書從 PHP 程式設計的基礎開始,涵蓋了變數、函式、類別和物件等基本概念。您將在自己的電腦上設置 PHP 伺服器,並學習閱讀和撰寫程序式 PHP 程式碼。在瞭解 OOP 作為一種範式之後,您將在資料庫上執行 MySQL 查詢。接著,您將了解如何使用 MVC 從頭開始建立應用程式並添加測試。然後,您將建立 REST API 並對應用程式進行行為測試。


通過閱讀本書,您將具備讀寫檔案、除錯、測試和使用 MySQL 的技能。

您將學到什麼



  • 在您的電腦上設置 PHP 伺服器

  • 使用內建伺服器的 PHP 語法創建應用程式

  • 將 OOP 範式應用於 PHP,撰寫更豐富的程式碼

  • 使用 MySQL 管理網頁應用程式中的資料

  • 使用 MVC 從頭開始建立網頁應用程式

  • 為您的網頁應用程式添加測試並撰寫可測試的程式碼

  • 使用現有的 PHP 框架建立和管理應用程式

  • 為您的 PHP 應用程式建立 REST API

  • 使用 Behat 測試網頁應用程式的行為

關於作者


Antonio Lopez 是一位擁有超過 7 年經驗的軟體工程師。他從大學時期開始就使用 PHP,這已經是 10 年前的事了,當時他建立了一些小型個人專案。之後,Antonio 在歐洲各地工作,包括巴塞隆納、倫敦、都柏林和再次回到巴塞隆納。他從事過多個不同領域的工作,從網頁應用程式到 REST API 和內部工具。Antonio 喜歡在個人專案和新創公司上花費空閒時間,並且對教育和教學有著強烈的職業志向。

目錄



  1. 環境設置

  2. 使用 PHP 建立網頁應用程式

  3. 瞭解 PHP 基礎

  4. 使用 OOP 創建乾淨的程式碼

  5. 使用資料庫

  6. 適應 MVC

  7. 測試網頁應用程式

  8. 使用現有的 PHP 框架

  9. 建立 REST API

  10. 行為測試