McArthur | Pro PHP | E-Book | www2.sack.de
E-Book

E-Book, Englisch, 349 Seiten

McArthur Pro PHP

Patterns, Frameworks, Testing and More
1. ed
ISBN: 978-1-4302-0279-0
Verlag: Apress
Format: PDF
Kopierschutz: 1 - PDF Watermark

Patterns, Frameworks, Testing and More

E-Book, Englisch, 349 Seiten

ISBN: 978-1-4302-0279-0
Verlag: Apress
Format: PDF
Kopierschutz: 1 - PDF Watermark



Pro PHP presents experienced developers with a thorough guide to the language's key advanced features, focusing on both recent and emerging features and development trends. Advanced object-oriented features, documentation, debugging, software patterns, and the Standard PHP Library are just a few of the topics covered in extensive detail. Author and noted PHP expert Kevin McArthur also examines emerging practices and trends such as the MVC architecture as applied to PHP, with special emphasis placed upon the increasingly popular Zend Framework. The book also covers JSON, the SOAP extension, and advanced web services topics.

Kevin McArthur is an open source developer residing in British Columbia, Canada. He is a self-taught entrepreneur and has been running a very successful PHP application development studio for more than eight years. His company, StormTide Digital Studios, has worked with industry in the United States and Canada to provide scaling solutions for web statistics, VoIP, and print automation. An avid IRC user, Kevin helps to administer one of the largest PHP support organizations, PHP EFnet. Kevin's contributions to open source projects, including the Zend Framework, have made him a well-known authority in the industry. He has written several articles for PHPRiot.com on topics such as reflection, the Standard PHP Library, object-oriented programming, and PostgreSQL.

McArthur Pro PHP jetzt bestellen!

Autoren/Hrsg.


Weitere Infos & Material


1;Contents at a Glance;5
2;Contents;7
3;About the Author;16
4;About the Technical Reviewer;17
5;Acknowledgments;18
6;Introduction;19
6.1;Who Should Read This Book;19
6.2;How This Book Is Organized;19
6.3;Contacting the Author;20
7;OOP and Patterns;21
7.1;Abstract Classes, Interfaces, and Programming by Contract;22
7.1.1;Abstract Classes;22
7.1.2;Interfaces;25
7.1.3;The instanceof Operator;27
7.1.4;Programming by Contract;28
7.1.5;Just the Facts;29
7.2;Static Variables, Members, and Methods;30
7.2.1;Static Variables;30
7.2.2;Static Usage in Classes;31
7.2.3;The Static Debate;37
7.2.4;Just the Facts;37
7.3;Singleton and Factory Patterns;39
7.3.1;Responsibility and the Singleton Pattern;39
7.3.2;The Factory Pattern;41
7.3.3;Just the Facts;47
7.4;Exceptions;48
7.4.1;Implementing Exceptions;48
7.4.2;Logging Exceptions;52
7.4.3;Exception Overhead;54
7.4.4;Error Coding;54
7.4.5;Type Hinting and Exceptions;55
7.4.6;Rethrowing Exceptions;56
7.4.7;Just the Facts;57
7.5;What's New in PHP 6;58
7.5.1;PHP Installation;58
7.5.2;Unicode in PHP 6;61
7.5.3;Namespaces;64
7.5.4;Late Static Binding;65
7.5.5;Dynamic Static Methods;67
7.5.6;Ternary Assignment Shorthand ( ifsetor);67
7.5.7;XMLWriter Class;67
7.5.8;Just the Facts;69
8;Testing and Documentation;70
8.1;Documentation and Coding Conventions;71
8.1.1;Coding Conventions;71
8.1.2;PHP Comments and Lexing;73
8.1.3;PHPDoc;75
8.1.4;DocBook;78
8.1.5;Just the Facts;87
8.2;Reflection API;88
8.2.1;Introducing the Reflection API;88
8.2.2;Parsing Reflection- Based Documentation Data;96
8.2.3;Extending the Reflection API;101
8.2.4;Just the Facts;117
8.3;Testing, Deployment, and Continuous Integration;119
8.3.1;Subversion for Version Control;119
8.3.2;PHPUnit for Unit Testing;124
8.3.3;Phing for Deployment;129
8.3.4;Xinc, the Continuous Integration Server;132
8.3.5;Xdebug for Debugging;134
8.3.6;Just the Facts;138
9;The Standard PHP Library ( SPL);139
9.1;Introduction to SPL;140
9.1.1;SPL Fundamentals;140
9.1.2;Iterators;141
9.1.3;Array Overloading;143
9.1.4;The Observer Pattern;144
9.1.5;Serialization;148
9.1.6;SPL Autoloading;150
9.1.7;Object Identification;153
9.1.8;Just the Facts;154
9.2;SPL Iterators;155
9.2.1;Iterator Interfaces and Iterators;155
9.2.2;Real- World Iterator Implementations;170
9.2.3;Just the Facts;173
9.3;SPL File and Directory Handling;174
9.3.1;File and Directory Information;174
9.3.2;Iteration of Directories;177
9.3.3;SPL File Object Operations;182
9.3.4;Just the Facts;188
9.4;SPL Array Overloading;190
9.4.1;Introducing ArrayAccess;190
9.4.2;Introducing ArrayObject;191
9.4.3;Building an SPL Shopping Cart;193
9.4.4;Using Objects As Keys;195
9.4.5;Just the Facts;199
9.5;SPL Exceptions;200
9.5.1;Logic Exceptions;200
9.5.2;Runtime Exceptions;202
9.5.3;Bad Function and Method Call Exceptions;203
9.5.4;Domain Exceptions;203
9.5.5;Range Exceptions;204
9.5.6;Invalid Argument Exceptions;205
9.5.7;Length Exceptions;205
9.5.8;Overflow Exceptions;206
9.5.9;Underflow Exceptions;207
9.5.10;Just the Facts;209
10;The Model-View- Controller ( MVC) Pattern;210
10.1;MVC Architecture;211
10.1.1;Why Use MVC?;211
10.1.2;MVC Application Layout;213
10.1.3;Criteria for Choosing an MVC Framework;214
10.1.4;Roll Your Own MVC Framework;215
10.1.5;Just the Facts;223
10.2;Introduction to the Zend Framework;224
10.2.1;Setting Up the Zend Framework;224
10.2.2;Creating Controllers, Views, and Models;228
10.2.3;Adding Functionality;233
10.2.4;Just the Facts;242
10.3;Advanced Zend Framework;243
10.3.1;Managing Configuration Files;243
10.3.2;Setting Site- Wide View Variables;245
10.3.3;Sharing Objects;246
10.3.4;Error Handling;246
10.3.5;Application Logging;247
10.3.6;Caching;249
10.3.7;Authorizing Users;253
10.3.8;Using JSON with PHP;256
10.3.9;Customizing Routes;257
10.3.10;Managing Sessions;259
10.3.11;Sending Mail;260
10.3.12;Creating PDF Files;261
10.3.13;Integrating with Web Services;264
10.3.14;Just the Facts;265
10.4;The Zend Framework Applied;267
10.4.1;Module and Model Setup;267
10.4.2;The Request Cycle;269
10.4.3;Creating Plug-ins;270
10.4.4;Creating Helpers;271
10.4.5;Implementing Access Control;273
10.4.6;Using a Two- Step View;275
10.4.7;Just the Facts;278
11;Web 2.0;279
11.1;Ajax and JSON;280
11.1.1;JSON and PHP;280
11.1.2;JSON and JavaScript;283
11.1.3;Some Ajax Projects;287
11.1.4;Just the Facts;291
11.2;Introduction to Web Services with SOAP;292
11.2.1;Introduction to the PHP Web Services Architecture;292
11.2.2;Introduction to WSDL;293
11.2.3;Introduction to SOAP;296
11.2.4;Using the PHP SOAP Extension;297
11.2.5;A Real- World Example;302
11.2.6;Just the Facts;304
11.3;Advanced Web Services;305
11.3.1;Complex Types;305
11.3.2;Authentication;311
11.3.3;Sessions;312
11.3.4;Objects and Persistence;314
11.3.5;Binary Data Transmission;315
11.3.6;Just the Facts;317
11.4;Certificate Authentication;318
11.4.1;Public Key Infrastructure Security;318
11.4.2;Setting Up Client Certificate Authentication;320
11.4.3;PHP Authentication Control;330
11.4.4;Just the Facts;332
12;Index;333



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.