Loading, please wait...
:

product description page

Typed Php : Stronger Types for Cleaner Code (Paperback) (Christopher Pitt)

Typed Php : Stronger Types for Cleaner Code (Paperback) (Christopher Pitt) - image 1 of 1

About this item

Discover how stronger types mean cleaner code and better running and optimized PHP applications. This unique book looks at typed PHP: PHP types, strings, regular expressions, and more from PHP 7 as found in standard PHP libraries, user libraries, extensions, and cross-compilers. You'll see how to create a set of reusable tools that unify and ease the scalar types of PHP. This is an important topic for creating in your web development and other projects.

PHP has a rich history and a dominant place on the web. It has achieved much despite language inconsistencies and difficulties. Bjarne Stroustrup once said: "There are only two kinds of languages: the ones people complain about and the ones nobody uses".

PHP is one of those languages that everybody uses, yet that's often seen as a good reason to ignore the bad parts and just get stuff done. We're all for getting stuff done, and to that end, the author has used Plain Ol' PHP for many years. It's always bugged him how procedural PHP is, in an ecosystem of OOP libraries and frameworks. So he decided to take a deeper look at building a stronger type system on top of PHP. That's the goal of this book.

What you'll learn
  • Discover the fundamentals of PHP strings, regex, underscores, native function inconsistencies, and more
  • Examine the structure of PHP types including boxing, regex, namespace functions, composer autoload, null problem, optional values, and more
  • Work with extensions like vagrant + phansible, provisioning, vagrant commands, SPL types, scalar objects, zephir, and more
  • Design using scalar, SPL, zephir, structure types, resolving types, chaining, combining number types, PHPUnit, packaging, and more
  • Plan for the future using a case study example
Who is this book for 
This book is for experienced web developers and PHP programmers.  
Genre: Computers + Internet
Format: Paperback
Publisher: Springer Verlag
Author: Christopher Pitt
Language: English
Street Date: August 4, 2016
TCIN: 51708358
UPC: 9781484221136
Item Number (DPCI): 248-30-0058
If the item details above aren’t accurate or complete, we want to know about it. Report incorrect product info.

Guest reviews

Prices, promotions, styles and availability may vary by store & online. See our price match guarantee. See how a store is chosen for you.