PHP Development Tool Essentials (eBook)

(Autor)

eBook Download: PDF
2016 | 1st ed.
XI, 114 Seiten
Apress (Verlag)
978-1-4842-0683-6 (ISBN)

Lese- und Medienproben

PHP Development Tool Essentials - Chad Russell
Systemvoraussetzungen
22,99 inkl. MwSt
  • Download sofort lieferbar
  • Zahlungsarten anzeigen

Learn PHP development best practices, such as version control, development environment virtualization, and coding standards. You'll also discover the most useful PHP web frameworks, including the new Laravel, symfony2, and micro-frameworks. As you do so, you'll learn how to use them to write the most productive PHP code possible.

PHP Development Tool Essentials complements Jason Gilmore's best-selling Beginning PHP and MySQL. This book will further expose you to the many different methodologies, tools, and concepts that professional web developers are using more and more each day.

What You'll Learn

  • How to use version control with PHP
  • How to set up virtualized development environments
  • How to maintain PHP coding standards
  • How to manage dependencies
  • How to leverage the best PHP frameworks
Who This Book Is For

This book is for intermediate to advanced PHP developers looking to advance their skills with new tools, concepts, and approaches.


Chad Russell is a programmer and network administrator who owns his own Internet hosting company. He previously has written on MySQL, PHP, and other topics.
Learn PHP development best practices, such as version control, development environment virtualization, and coding standards. You'll also discover the most useful PHP web frameworks, including the new Laravel, symfony2, and micro-frameworks. As you do so, you'll learn how to use them to write the most productive PHP code possible. PHP Development Tool Essentials complements Jason Gilmore's best-selling Beginning PHP and MySQL. This book will further expose you to the many different methodologies, tools, and concepts that professional web developers are using more and more each day.What You'll LearnUse version control with PHPSet up virtualized development environmentsMaintain PHP coding standardsManage dependenciesLeverage the best PHP frameworksWho This Book Is ForIntermediate to advanced PHP developers looking to advance their skills with new tools, concepts, and approaches.

Chad Russell is a programmer and network administrator who owns his own Internet hosting company. He previously has written on MySQL, PHP, and other topics.

Contents at a Glance 4
Contents 6
About the Author 10
About the Technical Reviewer 12
Chapter 1: Version Control 13
Using Git 13
Git Configuration 14
Initializing Your Repository 14
Initial Commit 15
Staging Changes 16
Viewing History 17
Ignoring Specific Files 18
Removing Files 18
Branching and Merging 20
Merging 21
Stashing Changes 22
Tagging 23
Lightweight Tags 23
Annotated Tags 24
Undoing Changes 25
Amend 25
Un-stage 25
File Reset 26
Soft Reset 26
Mixed Reset 27
Hard Reset 27
Version Control in the Cloud: Bitbucket and GitHub 27
Bitbucket 27
SSH Key 28
Creating Your First Remote Repository 28
GitHub 29
Pushing, Pulling, and Conflict Resolution 29
Git Tools 29
PHPStorm 29
SourceTree 31
Installing SourceTree 31
Adding a Repository 31
GitHub GUI 32
Installing the GitHub GUI 32
Adding a Repository 33
gitg 33
Installing gitg 33
Adding a Repository 33
Summary 34
Chapter 2: Virtualizing Development Environments 35
Introduction to Vagrant 36
Installing Vagrant and VirtualBox 36
Vagrant Commands 37
Setting Up Our First Environment 38
Initial VM setup 40
Shared Folders 41
Networking 41
VM Settings 41
Removing VMs 44
Default Vagrant LAMP box 44
Advanced Configurations Using Ansible, Bash, and Puppet 45
Bash (Shell) Provisioner 45
Puppet Provisioner 46
Ansible Provisioner 48
Advanced Configuration Conclusion 49
Configuration Tools 49
PuPHPet 50
Accessing PuPHPet 50
Setting Up and Using PuPHPet Configurations 51
Phansible 51
Vagrant Plugins 53
Summary 53
Chapter 3: Coding Standards 54
A Look at PHP-FIG 54
PSR-1 — Basic Coding Standard 55
Files 55
PHP Tags 55
Character Encoding 55
Side Effects 55
Namespace and Class Names 56
Class Constants, Properties, and Methods 56
Constants 56
Properties 56
Methods 57
PSR-2 — Coding Style Guide 57
General 58
Files 58
Lines 58
Indentation 58
Keywords and true, false, and null 58
Namespace and Use Declarations 59
Classes, Properties, and Methods 59
Classes 59
Properties 59
Methods 60
Method Arguments 60
Abstract, Final, and Static 60
Method and Function Calls 60
Control Structures 61
if, elseif, else 61
switch, case 61
while, do while 62
for 62
foreach 63
try, catch (and finally) 63
Closures 63
Omissions from PSR-2 65
Checking Coding Standards with PHP Code Sniffer 65
Using PHP_CodeSniffer 66
PHP_CodeSniffer Configuration 68
PHP_CodeSniffer Custom Standard 69
PHP_CodeSniffer IDE Integration 70
Code Documentation Using phpDocumentor 71
Installing phpDocumentor 71
Using phpDocumentor 72
Running phpDocumentor 75
Non-structural Comments 76
Summary 76
Chapter 4: Dependency Management 77
Composer and Packagist 77
Installing Composer 77
Locally 77
Globally 78
Packagist 78
Using Composer 78
The composer.json File 79
Installing Additional Packages 80
Removing Packages 80
require vs require-dev 81
The Composer Lock File 82
Autoloading 82
Additional Autoloading 83
Autoloader Optimization 83
Package Versions 84
Basic Constraints 84
Exact 84
Range 85
Wildcard 85
Range Hyphen 85
Next Significant Release 85
Tilde 86
Caret 86
Stability 86
Updating Packages 87
Installing Packages Globally 87
PEAR & Pyrus
Is Anyone Still Using Pear? 89
PECL 89
Should I Be Using PEAR or Pyrus? 91
Installing a Global Utility Using PEAR 91
Summary 92
Chapter 5: Frameworks 93
Why Use a Framework? 93
Zend Framework 2 94
Installing ZF2 94
Module 96
Controller 97
Database 98
Credentials Configuration 99
Model 99
Service Manager 100
View 101
Query & Display
Symfony 2 103
Installing SF2 103
Linux and OS X 104
Windows 104
Installing the Demo 104
Application Directory Structure 104
Bundles 106
Controller 107
Database 107
View 109
Display Results 109
Laravel 5 110
Installing Laravel 5 110
Application Directory Structure 111
Application Logic 112
Controllers & Routes
Database 113
View 113
Display Results 114
Micro-Frameworks 115
When to Use a Micro-Framework 115
Using a Micro-Framework 116
Silex 116
Lumen 117
Slim 118
Summary 119
Index 120

Erscheint lt. Verlag 15.7.2016
Zusatzinfo XI, 114 p. 22 illus. in color.
Verlagsort Berkeley
Sprache englisch
Themenwelt Informatik Datenbanken MySQL
Mathematik / Informatik Informatik Web / Internet
Schlagworte PHP • PHP Frameworks • Version Control • virtualization • Web Development
ISBN-10 1-4842-0683-5 / 1484206835
ISBN-13 978-1-4842-0683-6 / 9781484206836
Haben Sie eine Frage zum Produkt?
PDFPDF (Wasserzeichen)
Größe: 4,7 MB

DRM: Digitales Wasserzeichen
Dieses eBook enthält ein digitales Wasser­zeichen und ist damit für Sie persona­lisiert. Bei einer missbräuch­lichen Weiter­gabe des eBooks an Dritte ist eine Rück­ver­folgung an die Quelle möglich.

Dateiformat: PDF (Portable Document Format)
Mit einem festen Seiten­layout eignet sich die PDF besonders für Fach­bücher mit Spalten, Tabellen und Abbild­ungen. Eine PDF kann auf fast allen Geräten ange­zeigt werden, ist aber für kleine Displays (Smart­phone, eReader) nur einge­schränkt geeignet.

Systemvoraussetzungen:
PC/Mac: Mit einem PC oder Mac können Sie dieses eBook lesen. Sie benötigen dafür einen PDF-Viewer - z.B. den Adobe Reader oder Adobe Digital Editions.
eReader: Dieses eBook kann mit (fast) allen eBook-Readern gelesen werden. Mit dem amazon-Kindle ist es aber nicht kompatibel.
Smartphone/Tablet: Egal ob Apple oder Android, dieses eBook können Sie lesen. Sie benötigen dafür einen PDF-Viewer - z.B. die kostenlose Adobe Digital Editions-App.

Zusätzliches Feature: Online Lesen
Dieses eBook können Sie zusätzlich zum Download auch online im Webbrowser lesen.

Buying eBooks from abroad
For tax law reasons we can sell eBooks just within Germany and Switzerland. Regrettably we cannot fulfill eBook-orders from other countries.

Mehr entdecken
aus dem Bereich
Programmieren lernen in 14 Tagen. Einfach und ohne Vorkenntnisse

von Philipp Rieber

eBook Download (2021)
MITP Verlags GmbH & Co. KG
11,99
Ihr praktischer Einstieg in die Programmierung dynamischer Websites

von Florence Maurice

eBook Download (2019)
dpunkt (Verlag)
22,90