Nicht aus der Schweiz? Besuchen Sie lehmanns.de

Pro PHP (eBook)

Patterns, Frameworks, Testing and More

(Autor)

eBook Download: PDF
2008 | 1st ed.
XXIV, 349 Seiten
Apress (Verlag)
978-1-4302-0279-0 (ISBN)

Lese- und Medienproben

Pro PHP - Kevin McArthur
Systemvoraussetzungen
52,99 inkl. MwSt
(CHF 51,75)
Der eBook-Verkauf erfolgt durch die Lehmanns Media GmbH (Berlin) zum Preis in Euro inkl. MwSt.
  • Download sofort lieferbar
  • Zahlungsarten anzeigen

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.
Taking care to focus solely on those topics that will have the most impact on experienced PHP developers, Pro PHP is written for readers seeking to take their understanding of both PHP and sound software development practices to the next level. 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.With Ajax and web services crucial to the success of today's web applications, the book concludes with several chapters covering JSON, the SOAP extension, and advanced web services topics.If you're seeking to go beyond the basics, Pro PHP is the book for you.

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.

Contents at a Glance 5
Contents 7
About the Author 16
About the Technical Reviewer 17
Acknowledgments 18
Introduction 19
Who Should Read This Book 19
How This Book Is Organized 19
Contacting the Author 20
OOP and Patterns 21
Abstract Classes, Interfaces, and Programming by Contract 22
Abstract Classes 22
Interfaces 25
The instanceof Operator 27
Programming by Contract 28
Just the Facts 29
Static Variables, Members, and Methods 30
Static Variables 30
Static Usage in Classes 31
The Static Debate 37
Just the Facts 37
Singleton and Factory Patterns 39
Responsibility and the Singleton Pattern 39
The Factory Pattern 41
Just the Facts 47
Exceptions 48
Implementing Exceptions 48
Logging Exceptions 52
Exception Overhead 54
Error Coding 54
Type Hinting and Exceptions 55
Rethrowing Exceptions 56
Just the Facts 57
What's New in PHP 6 58
PHP Installation 58
Unicode in PHP 6 61
Namespaces 64
Late Static Binding 65
Dynamic Static Methods 67
Ternary Assignment Shorthand ( ifsetor) 67
XMLWriter Class 67
Just the Facts 69
Testing and Documentation 70
Documentation and Coding Conventions 71
Coding Conventions 71
PHP Comments and Lexing 73
PHPDoc 75
DocBook 78
Just the Facts 87
Reflection API 88
Introducing the Reflection API 88
Parsing Reflection- Based Documentation Data 96
Extending the Reflection API 101
Just the Facts 117
Testing, Deployment, and Continuous Integration 119
Subversion for Version Control 119
PHPUnit for Unit Testing 124
Phing for Deployment 129
Xinc, the Continuous Integration Server 132
Xdebug for Debugging 134
Just the Facts 138
The Standard PHP Library ( SPL) 139
Introduction to SPL 140
SPL Fundamentals 140
Iterators 141
Array Overloading 143
The Observer Pattern 144
Serialization 148
SPL Autoloading 150
Object Identification 153
Just the Facts 154
SPL Iterators 155
Iterator Interfaces and Iterators 155
Real- World Iterator Implementations 170
Just the Facts 173
SPL File and Directory Handling 174
File and Directory Information 174
Iteration of Directories 177
SPL File Object Operations 182
Just the Facts 188
SPL Array Overloading 190
Introducing ArrayAccess 190
Introducing ArrayObject 191
Building an SPL Shopping Cart 193
Using Objects As Keys 195
Just the Facts 199
SPL Exceptions 200
Logic Exceptions 200
Runtime Exceptions 202
Bad Function and Method Call Exceptions 203
Domain Exceptions 203
Range Exceptions 204
Invalid Argument Exceptions 205
Length Exceptions 205
Overflow Exceptions 206
Underflow Exceptions 207
Just the Facts 209
The Model-View- Controller ( MVC) Pattern 210
MVC Architecture 211
Why Use MVC? 211
MVC Application Layout 213
Criteria for Choosing an MVC Framework 214
Roll Your Own MVC Framework 215
Just the Facts 223
Introduction to the Zend Framework 224
Setting Up the Zend Framework 224
Creating Controllers, Views, and Models 228
Adding Functionality 233
Just the Facts 242
Advanced Zend Framework 243
Managing Configuration Files 243
Setting Site- Wide View Variables 245
Sharing Objects 246
Error Handling 246
Application Logging 247
Caching 249
Authorizing Users 253
Using JSON with PHP 256
Customizing Routes 257
Managing Sessions 259
Sending Mail 260
Creating PDF Files 261
Integrating with Web Services 264
Just the Facts 265
The Zend Framework Applied 267
Module and Model Setup 267
The Request Cycle 269
Creating Plug-ins 270
Creating Helpers 271
Implementing Access Control 273
Using a Two- Step View 275
Just the Facts 278
Web 2.0 279
Ajax and JSON 280
JSON and PHP 280
JSON and JavaScript 283
Some Ajax Projects 287
Just the Facts 291
Introduction to Web Services with SOAP 292
Introduction to the PHP Web Services Architecture 292
Introduction to WSDL 293
Introduction to SOAP 296
Using the PHP SOAP Extension 297
A Real- World Example 302
Just the Facts 304
Advanced Web Services 305
Complex Types 305
Authentication 311
Sessions 312
Objects and Persistence 314
Binary Data Transmission 315
Just the Facts 317
Certificate Authentication 318
Public Key Infrastructure Security 318
Setting Up Client Certificate Authentication 320
PHP Authentication Control 330
Just the Facts 332
Index 333

Erscheint lt. Verlag 29.5.2008
Zusatzinfo XXIV, 349 p.
Verlagsort Berkeley
Sprache englisch
Themenwelt Mathematik / Informatik Informatik Programmiersprachen / -werkzeuge
Mathematik / Informatik Informatik Web / Internet
Schlagworte AJAX • Debugging • Deployment • Framework • JSON • PHP • Web Services • ZEND
ISBN-10 1-4302-0279-3 / 1430202793
ISBN-13 978-1-4302-0279-0 / 9781430202790
Haben Sie eine Frage zum Produkt?
PDFPDF (Wasserzeichen)
Größe: 1,8 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
Das umfassende Handbuch

von Johannes Ernesti; Peter Kaiser

eBook Download (2023)
Rheinwerk Computing (Verlag)
CHF 43,85
Das Handbuch für Webentwickler

von Philip Ackermann

eBook Download (2023)
Rheinwerk Computing (Verlag)
CHF 48,75