Typed PHP

Stronger Types For Cleaner Code

Nonfiction, Computers, Internet, Web Development, General Computing, Programming
Cover of the book Typed PHP by Christopher Pitt, Apress
View on Amazon View on AbeBooks View on Kobo View on B.Depository View on eBay View on Walmart
Author: Christopher Pitt ISBN: 9781484221143
Publisher: Apress Publication: August 4, 2016
Imprint: Apress Language: English
Author: Christopher Pitt
ISBN: 9781484221143
Publisher: Apress
Publication: August 4, 2016
Imprint: Apress
Language: English

Discover how stronger types mean cleaner, more efficient, 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.

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 This Book Is For

Experienced web developers and PHP programmers.

View on Amazon View on AbeBooks View on Kobo View on B.Depository View on eBay View on Walmart

Discover how stronger types mean cleaner, more efficient, 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.

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

Who This Book Is For

Experienced web developers and PHP programmers.

More books from Apress

Cover of the book The Business Value of Developer Relations by Christopher Pitt
Cover of the book Modern API Design with ASP.NET Core 2 by Christopher Pitt
Cover of the book MATLAB Machine Learning by Christopher Pitt
Cover of the book Cybersecurity Lexicon by Christopher Pitt
Cover of the book Mobile ASP.NET MVC 5 by Christopher Pitt
Cover of the book Practical Linux Infrastructure by Christopher Pitt
Cover of the book Object-Oriented Design with ABAP by Christopher Pitt
Cover of the book Interactive Object Oriented Programming in Java by Christopher Pitt
Cover of the book Swift Game Programming for Absolute Beginners by Christopher Pitt
Cover of the book Python for the Busy Java Developer by Christopher Pitt
Cover of the book PHP Development Tool Essentials by Christopher Pitt
Cover of the book Parsing with Perl 6 Regexes and Grammars by Christopher Pitt
Cover of the book Beginning Xamarin Development for the Mac by Christopher Pitt
Cover of the book Pro Microsoft HDInsight by Christopher Pitt
Cover of the book Building Digital Experience Platforms by Christopher Pitt
We use our own "cookies" and third party cookies to improve services and to see statistical information. By using this website, you agree to our Privacy Policy