چه کسانی این کتاب را می‌خوانند

دانشجوعلاقه‌مند یادگیری
کتابخوان حرفه‌ایلذت مطالعه
نویسندهالهام‌گیری

Pro PHP patterns, frameworks, testing and more.: Includes index

Kevin McArthur (auth.)

قیمت نهایی

۴۹٬۰۰۰ تومان

نسخه اصلی و اورجینال

بلافاصله پس از خرید، فایل کتاب روی دستگاه شما آمادهٔ دانلود است.

تحویل فوری
پرداخت امن
ضمانت فایل
پشتیبانی

مشخصات کتاب

ناشر
Apress L. P.
سال انتشار
۲۰۰۸
فرمت
PDF
زبان
انگلیسی
تعداد صفحات
۹ صفحه
حجم فایل
۵٫۰ مگابایت

دربارهٔ کتاب

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.----------dear amazon, please stop harassing me to review my purchases. I'll review them when i'm good and ready. thanks. p.s. i love you Pro PHP: Patterns, Frameworks, Testing and More 1 Contents at a Glance 6 Contents 9 About the Author 19 About the Technical Reviewer 21 Acknowledgments 23 Introduction 25 Who Should Read This Book 25 How This Book Is Organized 25 Contacting the Author 26 Abstract Classes, Interfaces, and Programming by Contract 29 Abstract Classes 29 Interfaces 32 The instanceof Operator 34 Programming by Contract 35 Just the Facts 36 Static Variables, Members, and Methods 37 Static Variables 37 Static Usage in Classes 38 Static Members 38 Paamayim Nekudotayim 39 Static Methods 42 The Static Debate 44 Just the Facts 44 Singleton and Factory Patterns 47 Responsibility and the Singleton Pattern 47 The Factory Pattern 49 The Image Factory 50 The Portable Database 53 Just the Facts 55 Exceptions 57 Implementing Exceptions 57 Exception Elements 57 try 57 catch 58 throw 58 Exception 58 Extending Exceptions 60 Logging Exceptions 61 Logging Custom Exceptions 61 Defining an Uncaught Exception Handler 62 Exception Overhead 63 Error Coding 63 Type Hinting and Exceptions 64 Rethrowing Exceptions 65 Just the Facts 66 What's New in PHP 6 67 PHP Installation 67 Unicode in PHP 6 70 Unicode Semantics 70 Unicode Collations 72 Namespaces 73 Late Static Binding 74 Dynamic Static Methods 76 Ternary Assignment Shorthand (ifsetor) 76 XMLWriter Class 76 Just the Facts 78 Documentation and Coding Conventions 81 Coding Conventions 81 PHP Comments and Lexing 83 Types of Comments 83 More About Doccomments 83 Lexing 84 Metadata 84 PHPDoc 85 DocBook 88 Creating an XML File for DocBook 88 Parsing a DocBook File 89 Using DocBook Elements 93 The bookinfo Element 93 The chapter Element 93 The section Element 94 The para Element 94 Just the Facts 97 Reflection API 99 Introducing the Reflection API 99 Retrieving User-Declared Classes 100 Understanding the Reflection Plug-in Architecture 102 Parsing Reflection-Based Documentation Data 107 Installing the Docblock Tokenizer 107 Accessing Doccomment Data 108 Tokenizing Doccomment Data 109 Parsing the Tokens 110 Extending the Reflection API 112 Integrating the Parser with the Reflection API 112 Extending Reflection Classes 114 Updating the Parser to Handle In-Line Tags 122 Adding Attributes 125 Just the Facts 128 Testing, Deployment, and Continuous Integration 131 Subversion for Version Control 131 Installing Subversion 132 Setting Up Subversion 132 Committing Changes and Resolving Conflicts 134 Enabling Subversion Access 136 PHPUnit for Unit Testing 136 Installing PHPUnit 136 Creating Your First Unit Test 137 Understanding PHPUnit 138 Phing for Deployment 141 Installing Phing 141 Writing a Phing Deployment Script 142 Xinc, the Continuous Integration Server 144 Installing Xinc 144 Creating the Xinc Configuration File 145 Starting Xinc 146 Xdebug for Debugging 146 Installing Xdebug 146 Tracing with Xdebug 147 Profiling with Xdebug 149 Checking Code Coverage with Xdebug 149 Remote Debugging with Xdebug 150 Just the Facts 150 Introduction to SPL 153 SPL Fundamentals 153 Iterators 154 Iterator Interface 154 Iterator Helper Functions 155 Array Overloading 156 ArrayAccess Interface 156 Counting and ArrayAccess 157 The Observer Pattern 157 Serialization 161 SPL Autoloading 163 Object Identification 166 Just the Facts 167 SPL Iterators 169 Iterator Interfaces and Iterators 169 Iterator Interfaces 169 Traversable 169 Iterator 170 IteratorAggregate 170 OuterIterator 171 RecursiveIterator 171 Iterators 172 ArrayIterator 172 LimitIterator 172 AppendIterator 173 FilterIterator 174 RegexIterator 175 IteratorIterator 177 CachingIterator 178 SeekableIterator 178 NoRewindIterator 178 EmptyIterator 178 InfiniteIterator 178 RecursiveArrayIterator 179 RecursiveIteratorIterator 179 RecursiveTreeIterator 180 ParentIterator 182 DualIterator 182 RecursiveFilterIterator 183 RecursiveRegexIterator 184 RecursiveDualIterator 184 RecursiveCachingIterator 184 SearchIterator 184 Real-World Iterator Implementations 184 Parsing XML with SimpleXML 184 Accessing Flat-File Databases with DBA 185 DbaReader 186 IniGroups 186 Just the Facts 187 SPL File and Directory Handling 189 File and Directory Information 189 Iteration of Directories 192 Listing Files and Directories 192 DirectoryIterator 192 RecursiveDirectoryIterator 193 Finding Files 194 FindFile 194 RegexFindFile 195 Creating Custom File Filter Iterators 195 Creating a Plug-in Directory 196 Operating on a CVS Directory 197 Using Reflection with Directory Iterators 197 SPL File Object Operations 197 File Iteration 198 CSV Operation 198 Searching Files 202 Just the Facts 203 SPL Array Overloading 205 Introducing ArrayAccess 205 Introducing ArrayObject 206 Building an SPL Shopping Cart 208 Using Objects As Keys 210 Just the Facts 214 SPL Exceptions 215 Logic Exceptions 215 Runtime Exceptions 217 Bad Function and Method Call Exceptions 218 Domain Exceptions 218 Range Exceptions 219 Invalid Argument Exceptions 220 Length Exceptions 220 Overflow Exceptions 221 Underflow Exceptions 222 Just the Facts 224 MVC Architecture 227 Why Use MVC? 227 MVC Application Layout 229 From the Web Server 229 Actions and Controllers 229 Models 229 Views 229 Criteria for Choosing an MVC Framework 230 Architecture of the MVC Framework 230 MVC Framework Documentation 230 MVC Framework Community 231 MVC Framework Support 231 MVC Framework Flexibility 231 Roll Your Own MVC Framework 231 Setting Up a Virtual Host 232 Creating an MVC Framework 233 Bootstrapping 233 The Front Controller 234 The Controller 236 The View 237 URL Parameters 238 Just the Facts 239 Introduction to the Zend Framework 241 Setting Up the Zend Framework 241 Installing the Zend Framework 241 Creating a Virtual Host 242 Bootstrapping 243 Creating Controllers, Views, and Models 245 Adding an Index Controller 245 Adding a View 246 Defining Models 247 Setting Up a Database 247 Configuring the Framework to Use the Database 248 Creating the Customers Model, Controller, and View 249 Adding Functionality 250 Using the Request and Response Objects 250 The Request Object 251 The Response Object 252 Using Built-in Action Helpers 252 The Redirector Helper 252 The FlashMessenger Helper 253 Using Built-in View Helpers 253 Validating Input 255 Using Zend_Filter_Input 255 Using Metacommands 258 Just the Facts 259 Advanced Zend Framework 261 Managing Configuration Files 261 The Array Approach 261 The INI Approach 262 The XML Approach 263 Setting Site-Wide View Variables 263 Sharing Objects 264 Error Handling 264 Application Logging 265 Caching 267 Caching Security Considerations 267 Caching Techniques 268 Authorizing Users 271 Using JSON with PHP 274 Customizing Routes 275 Managing Sessions 277 Sending Mail 278 Creating PDF Files 279 Creating New PDF Pages 280 Drawing on PDF Pages 280 Integrating with Web Services 282 Just the Facts 283 The Zend Framework Applied 285 Module and Model Setup 285 Conventional Modular Directory Structure 285 Model Libraries and Zend_Loader 286 The Request Cycle 287 Creating Plug-ins 288 Creating Helpers 289 Writing Action Helpers 289 Writing View Helpers 290 Implementing Access Control 291 Using a Two-Step View 293 Creating a Master Layout 293 Using Placeholders 294 Just the Facts 296 Ajax and JSON 299 JSON and PHP 299 The JSON Extension 300 JSON in the Zend Framework 301 JSON and JavaScript 302 The XMLHttpRequest Object 304 Some Ajax Projects 306 GET Requests 306 POST Requests 307 Just the Facts 310 Introduction to Web Services with SOAP 311 Introduction to the PHP Web Services Architecture 311 Introduction to WSDL 312 WSDL Terminology 312 A WSDL File 313 Introduction to SOAP 315 Using the PHP SOAP Extension 316 SoapClient Class Methods and Options 317 SoapServer Class Methods and Options 320 A Real-World Example 321 Just the Facts 323 Advanced Web Services 325 Complex Types 325 A Complex Type Example 325 Class Mapping 330 Authentication 331 HTTP Authentication 331 Communicated-Key Authentication 332 Client-Certificate Authentication 332 Sessions 332 Objects and Persistence 334 Binary Data Transmission 335 Just the Facts 337 Certificate Authentication 339 Public Key Infrastructure Security 339 Certificate Authority 339 Web Server Certificate 340 Client Certificate 340 Root CA Certificate 340 Setting Up Client Certificate Authentication 341 Creating Your Own Certificate Authority 341 Create a Self-Signed Web Server Certificate 343 Configuring Apache for SSL 345 Creating the Client-Side Certificates 346 Permitting Only Certificate Authentication 349 Testing the Certificate 350 PHP Authentication Control 351 Binding PHP to a Certificate 351 Setting Up Web Service Authentication 351 Just the Facts 353 Index 355 Pro PHP: Patterns, Frameworks, Testing and More......Page 1 Contents at a Glance......Page 6 Contents......Page 9 About the Author......Page 19 About the Technical Reviewer......Page 21 Acknowledgments......Page 23 How This Book Is Organized......Page 25 Contacting the Author......Page 26 Abstract Classes......Page 29 Interfaces......Page 32 The instanceof Operator......Page 34 Programming by Contract......Page 35 Just the Facts......Page 36 Static Variables......Page 37 Static Members......Page 38 Paamayim Nekudotayim......Page 39 Static Methods......Page 42 Just the Facts......Page 44 Responsibility and the Singleton Pattern......Page 47 The Factory Pattern......Page 49 The Image Factory......Page 50 The Portable Database......Page 53 Just the Facts......Page 55 try......Page 57 Exception......Page 58 Extending Exceptions......Page 60 Logging Custom Exceptions......Page 61 Defining an Uncaught Exception Handler......Page 62 Error Coding......Page 63 Type Hinting and Exceptions......Page 64 Rethrowing Exceptions......Page 65 Just the Facts......Page 66 PHP Installation......Page 67 Unicode Semantics......Page 70 Unicode Collations......Page 72 Namespaces......Page 73 Late Static Binding......Page 74 XMLWriter Class......Page 76 Just the Facts......Page 78 Coding Conventions......Page 81 More About Doccomments......Page 83 Metadata......Page 84 PHPDoc......Page 85 Creating an XML File for DocBook......Page 88 Parsing a DocBook File......Page 89 The chapter Element......Page 93 The para Element......Page 94 Just the Facts......Page 97 Introducing the Reflection API......Page 99 Retrieving User-Declared Classes......Page 100 Understanding the Reflection Plug-in Architecture......Page 102 Installing the Docblock Tokenizer......Page 107 Accessing Doccomment Data......Page 108 Tokenizing Doccomment Data......Page 109 Parsing the Tokens......Page 110 Integrating the Parser with the Reflection API......Page 112 Extending Reflection Classes......Page 114 Updating the Parser to Handle In-Line Tags......Page 122 Adding Attributes......Page 125 Just the Facts......Page 128 Subversion for Version Control......Page 131 Setting Up Subversion......Page 132 Committing Changes and Resolving Conflicts......Page 134 Installing PHPUnit......Page 136 Creating Your First Unit Test......Page 137 Understanding PHPUnit......Page 138 Installing Phing......Page 141 Writing a Phing Deployment Script......Page 142 Installing Xinc......Page 144 Creating the Xinc Configuration File......Page 145 Installing Xdebug......Page 146 Tracing with Xdebug......Page 147 Checking Code Coverage with Xdebug......Page 149 Just the Facts......Page 150 SPL Fundamentals......Page 153 Iterator Interface......Page 154 Iterator Helper Functions......Page 155 ArrayAccess Interface......Page 156 The Observer Pattern......Page 157 Serialization......Page 161 SPL Autoloading......Page 163 Object Identification......Page 166 Just the Facts......Page 167 Traversable......Page 169 IteratorAggregate......Page 170 RecursiveIterator......Page 171 LimitIterator......Page 172 AppendIterator......Page 173 FilterIterator......Page 174 RegexIterator......Page 175 IteratorIterator......Page 177 InfiniteIterator......Page 178 RecursiveIteratorIterator......Page 179 RecursiveTreeIterator......Page 180 DualIterator......Page 182 RecursiveFilterIterator......Page 183 Parsing XML with SimpleXML......Page 184 Accessing Flat-File Databases with DBA......Page 185 IniGroups......Page 186 Just the Facts......Page 187 File and Directory Information......Page 189 DirectoryIterator......Page 192 RecursiveDirectoryIterator......Page 193 FindFile......Page 194 Creating Custom File Filter Iterators......Page 195 Creating a Plug-in Directory......Page 196 SPL File Object Operations......Page 197 CSV Operation......Page 198 Searching Files......Page 202 Just the Facts......Page 203 Introducing ArrayAccess......Page 205 Introducing ArrayObject......Page 206 Building an SPL Shopping Cart......Page 208 Using Objects As Keys......Page 210 Just the Facts......Page 214 Logic Exceptions......Page 215 Runtime Exceptions......Page 217 Domain Exceptions......Page 218 Range Exceptions......Page 219 Length Exceptions......Page 220 Overflow Exceptions......Page 221 Underflow Exceptions......Page 222 Just the Facts......Page 224 Why Use MVC?......Page 227 Views......Page 229 MVC Framework Documentation......Page 230 Roll Your Own MVC Framework......Page 231 Setting Up a Virtual Host......Page 232 Bootstrapping......Page 233 The Front Controller......Page 234 The Controller......Page 236 The View......Page 237 URL Parameters......Page 238 Just the Facts......Page 239 Installing the Zend Framework......Page 241 Creating a Virtual Host......Page 242 Bootstrapping......Page 243 Adding an Index Controller......Page 245 Adding a View......Page 246 Setting Up a Database......Page 247 Configuring the Framework to Use the Database......Page 248 Creating the Customers Model, Controller, and View......Page 249 Using the Request and Response Objects......Page 250 The Request Object......Page 251 The Redirector Helper......Page 252 Using Built-in View Helpers......Page 253 Using Zend_Filter_Input......Page 255 Using Metacommands......Page 258 Just the Facts......Page 259 The Array Approach......Page 261 The INI Approach......Page 262 Setting Site-Wide View Variables......Page 263 Error Handling......Page 264 Application Logging......Page 265 Caching Security Considerations......Page 267 Caching Techniques......Page 268 Authorizing Users......Page 271 Using JSON with PHP......Page 274 Customizing Routes......Page 275 Managing Sessions......Page 277 Sending Mail......Page 278 Creating PDF Files......Page 279 Drawing on PDF Pages......Page 280 Integrating with Web Services......Page 282 Just the Facts......Page 283 Conventional Modular Directory Structure......Page 285 Model Libraries and Zend_Loader......Page 286 The Request Cycle......Page 287 Creating Plug-ins......Page 288 Writing Action Helpers......Page 289 Writing View Helpers......Page 290 Implementing Access Control......Page 291 Creating a Master Layout......Page 293 Using Placeholders......Page 294 Just the Facts......Page 296 JSON and PHP......Page 299 The JSON Extension......Page 300 JSON in the Zend Framework......Page 301 JSON and JavaScript......Page 302 The XMLHttpRequest Object......Page 304 GET Requests......Page 306 POST Requests......Page 307 Just the Facts......Page 310 Introduction to the PHP Web Services Architecture......Page 311 WSDL Terminology......Page 312 A WSDL File......Page 313 Introduction to SOAP......Page 315 Using the PHP SOAP Extension......Page 316 SoapClient Class Methods and Options......Page 317 SoapServer Class Methods and Options......Page 320 A Real-World Example......Page 321 Just the Facts......Page 323 A Complex Type Example......Page 325 Class Mapping......Page 330 HTTP Authentication......Page 331 Sessions......Page 332 Objects and Persistence......Page 334 Binary Data Transmission......Page 335 Just the Facts......Page 337 Certificate Authority......Page 339 Root CA Certificate......Page 340 Creating Your Own Certificate Authority......Page 341 Create a Self-Signed Web Server Certificate......Page 343 Configuring Apache for SSL......Page 345 Creating the Client-Side Certificates......Page 346 Permitting Only Certificate Authentication......Page 349 Testing the Certificate......Page 350 Setting Up Web Service Authentication......Page 351 Just the Facts......Page 353 Index......Page 355 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. 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. Résumé : Offers coverage of PHP's advanced object-oriented features and their application to patterns and pattern-driven development, discussing software development patterns, the Standard PHP Library, and MVC software architecture and PHP applications

قیمت نهایی

۴۹٬۰۰۰ تومان