Russell | PHP Development Tool Essentials | E-Book | www.sack.de
E-Book

E-Book, Englisch, 123 Seiten

Russell PHP Development Tool Essentials


1. ed
ISBN: 978-1-4842-0683-6
Verlag: Apress
Format: PDF
Kopierschutz: 1 - PDF Watermark

E-Book, Englisch, 123 Seiten

ISBN: 978-1-4842-0683-6
Verlag: Apress
Format: PDF
Kopierschutz: 1 - PDF Watermark



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 LearnHow to use version control with PHPHow to set up virtualized development environmentsHow to maintain PHP coding standardsHow to manage dependenciesHow to leverage the best PHP frameworksWho 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.

Russell PHP Development Tool Essentials jetzt bestellen!

Autoren/Hrsg.


Weitere Infos & Material


1;Contents at a Glance;4
2;Contents;6
3;About the Author;10
4;About the Technical Reviewer;12
5;Chapter 1: Version Control;13
5.1;Using Git;13
5.1.1;Git Configuration;14
5.1.2;Initializing Your Repository;14
5.1.3;Initial Commit;15
5.1.4;Staging Changes;16
5.1.5;Viewing History;17
5.1.6;Ignoring Specific Files;18
5.1.7;Removing Files;18
5.2;Branching and Merging;20
5.2.1;Merging;21
5.2.2;Stashing Changes;22
5.2.3;Tagging;23
5.2.3.1;Lightweight Tags;23
5.2.3.2;Annotated Tags;24
5.2.4;Undoing Changes;25
5.2.4.1;Amend;25
5.2.4.2;Un-stage;25
5.2.4.3;File Reset;26
5.2.4.4;Soft Reset;26
5.2.4.5;Mixed Reset;27
5.2.4.6;Hard Reset;27
5.3;Version Control in the Cloud: Bitbucket and GitHub;27
5.3.1;Bitbucket;27
5.3.1.1;SSH Key;28
5.3.1.2;Creating Your First Remote Repository;28
5.3.2;GitHub;29
5.4;Pushing, Pulling, and Conflict Resolution;29
5.5;Git Tools;29
5.5.1;PHPStorm;29
5.5.2;SourceTree;31
5.5.2.1;Installing SourceTree;31
5.5.2.2;Adding a Repository;31
5.5.3;GitHub GUI;32
5.5.3.1;Installing the GitHub GUI;32
5.5.3.2;Adding a Repository;33
5.5.4;gitg;33
5.5.4.1;Installing gitg;33
5.5.4.2;Adding a Repository;33
5.6;Summary;34
6;Chapter 2: Virtualizing Development Environments;35
6.1;Introduction to Vagrant;36
6.1.1;Installing Vagrant and VirtualBox;36
6.1.2;Vagrant Commands;37
6.2;Setting Up Our First Environment;38
6.2.1;Initial VM setup;40
6.2.2;Shared Folders;41
6.2.3;Networking;41
6.2.4;VM Settings;41
6.2.5;Removing VMs;44
6.2.6;Default Vagrant LAMP box;44
6.3;Advanced Configurations Using Ansible, Bash, and Puppet;45
6.3.1;Bash (Shell) Provisioner;45
6.3.2;Puppet Provisioner;46
6.3.3;Ansible Provisioner;48
6.3.4;Advanced Configuration Conclusion;49
6.4;Configuration Tools;49
6.4.1;PuPHPet;50
6.4.1.1;Accessing PuPHPet;50
6.4.1.2;Setting Up and Using PuPHPet Configurations;51
6.4.2;Phansible;51
6.5;Vagrant Plugins;53
6.6;Summary;53
7;Chapter 3: Coding Standards;54
7.1;A Look at PHP-FIG;54
7.1.1;PSR-1 — Basic Coding Standard;55
7.1.1.1;Files;55
7.1.1.1.1;PHP Tags;55
7.1.1.1.2;Character Encoding;55
7.1.1.1.3;Side Effects;55
7.1.1.2;Namespace and Class Names;56
7.1.1.3;Class Constants, Properties, and Methods;56
7.1.1.3.1;Constants;56
7.1.1.3.2;Properties;56
7.1.1.3.3;Methods;57
7.1.2;PSR-2 — Coding Style Guide;57
7.1.2.1;General;58
7.1.2.1.1;Files;58
7.1.2.1.2;Lines;58
7.1.2.1.3;Indentation;58
7.1.2.1.4;Keywords and true, false, and null;58
7.1.2.2;Namespace and Use Declarations;59
7.1.2.3;Classes, Properties, and Methods;59
7.1.2.3.1;Classes;59
7.1.2.3.2;Properties;59
7.1.2.3.3;Methods;60
7.1.2.3.4;Method Arguments;60
7.1.2.3.5;Abstract, Final, and Static;60
7.1.2.3.6;Method and Function Calls;60
7.1.2.4;Control Structures;61
7.1.2.4.1;if, elseif, else;61
7.1.2.4.2;switch, case;61
7.1.2.4.3;while, do while;62
7.1.2.4.4;for;62
7.1.2.4.5;foreach;63
7.1.2.4.6;try, catch (and finally);63
7.1.2.5;Closures;63
7.1.2.6;Omissions from PSR-2;65
7.2;Checking Coding Standards with PHP Code Sniffer;65
7.2.1;Using PHP_CodeSniffer;66
7.2.2;PHP_CodeSniffer Configuration;68
7.2.3;PHP_CodeSniffer Custom Standard;69
7.2.4;PHP_CodeSniffer IDE Integration;70
7.3;Code Documentation Using phpDocumentor;71
7.3.1;Installing phpDocumentor;71
7.3.2;Using phpDocumentor;72
7.3.3;Running phpDocumentor;75
7.3.4;Non-structural Comments;76
7.4;Summary;76
8;Chapter 4: Dependency Management;77
8.1;Composer and Packagist;77
8.1.1;Installing Composer;77
8.1.1.1;Locally;77
8.1.1.2;Globally;78
8.1.2;Packagist;78
8.1.3;Using Composer;78
8.1.3.1;The composer.json File;79
8.1.3.2;Installing Additional Packages;80
8.1.3.3;Removing Packages;80
8.1.3.4;require vs require-dev;81
8.1.3.5;The Composer Lock File;82
8.1.3.6;Autoloading;82
8.1.3.7;Additional Autoloading;83
8.1.3.8;Autoloader Optimization;83
8.1.3.9;Package Versions;84
8.1.3.10;Basic Constraints;84
8.1.3.10.1;Exact;84
8.1.3.10.2;Range;85
8.1.3.10.3;Wildcard;85
8.1.3.10.4;Range Hyphen;85
8.1.3.11;Next Significant Release;85
8.1.3.11.1;Tilde;86
8.1.3.11.2;Caret;86
8.1.3.12;Stability;86
8.1.3.13;Updating Packages;87
8.1.3.14;Installing Packages Globally;87
8.2;PEAR & Pyrus;88
8.2.1;Is Anyone Still Using Pear?;89
8.2.2;PECL;89
8.2.3;Should I Be Using PEAR or Pyrus?;91
8.2.3.1;Installing a Global Utility Using PEAR;91
8.3;Summary;92
9;Chapter 5: Frameworks;93
9.1;Why Use a Framework?;93
9.2;Zend Framework 2;94
9.2.1;Installing ZF2;94
9.2.2;Module;96
9.2.3;Controller;97
9.2.4;Database;98
9.2.4.1;Credentials Configuration;99
9.2.4.2;Model;99
9.2.4.3;Service Manager;100
9.2.5;View;101
9.2.6;Query & Display;101
9.3;Symfony 2;103
9.3.1;Installing SF2;103
9.3.1.1;Linux and OS X;104
9.3.1.2;Windows;104
9.3.1.3;Installing the Demo;104
9.3.1.4;Application Directory Structure;104
9.3.1.5;Bundles;106
9.3.1.6;Controller;107
9.3.1.7;Database;107
9.3.1.8;View;109
9.3.1.9;Display Results;109
9.4;Laravel 5;110
9.4.1;Installing Laravel 5;110
9.4.2;Application Directory Structure;111
9.4.3;Application Logic;112
9.4.4;Controllers & Routes;112
9.4.5;Database;113
9.4.6;View;113
9.4.7;Display Results;114
9.5;Micro-Frameworks;115
9.5.1;When to Use a Micro-Framework;115
9.5.2;Using a Micro-Framework;116
9.5.2.1;Silex;116
9.5.2.2;Lumen;117
9.5.2.3;Slim;118
9.6;Summary;119
10;Index;120



Ihre Fragen, Wünsche oder Anmerkungen
Vorname*
Nachname*
Ihre E-Mail-Adresse*
Kundennr.
Ihre Nachricht*
Lediglich mit * gekennzeichnete Felder sind Pflichtfelder.
Wenn Sie die im Kontaktformular eingegebenen Daten durch Klick auf den nachfolgenden Button übersenden, erklären Sie sich damit einverstanden, dass wir Ihr Angaben für die Beantwortung Ihrer Anfrage verwenden. Selbstverständlich werden Ihre Daten vertraulich behandelt und nicht an Dritte weitergegeben. Sie können der Verwendung Ihrer Daten jederzeit widersprechen. Das Datenhandling bei Sack Fachmedien erklären wir Ihnen in unserer Datenschutzerklärung.