Typed PHP (eBook)
XVIII, 76 Seiten
Apress (Verlag)
978-1-4842-2114-3 (ISBN)
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.
- 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
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: "e;There are only two kinds of languages: the ones people complain about and the ones nobody uses"e;. 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 LearnDiscover the fundamentals of PHP strings, regex, underscores, native function inconsistencies, and moreExamine the structure of PHP types including boxing, regex, namespace functions, composer autoload, null problem, optional values, and moreWork with extensions like vagrant + phansible, provisioning, vagrant commands, SPL types, scalar objects, zephir, and moreDesign using scalar, SPL, zephir, structure types, resolving types, chaining, combining number types, PHPUnit, packaging, and morePlan for the future using a case study exampleWho This Book Is ForExperienced web developers and PHP programmers.
Christopher Pitt is an expert web developer, PHP programmer/coder and writer, working at SilverStripe. He usually works on application architecture, though sometimes you'll find him building compilers or robots.
1. The State of PHP2. Structure3. Extensions4. Design5. Implementation
Erscheint lt. Verlag | 4.8.2016 |
---|---|
Zusatzinfo | XVIII, 76 p. 8 illus., 7 illus. in color. |
Verlagsort | Berkeley |
Sprache | englisch |
Themenwelt | Mathematik / Informatik ► Informatik ► Web / Internet |
Schlagworte | PHP • Script • typed • Types • Web • Web Development |
ISBN-10 | 1-4842-2114-1 / 1484221141 |
ISBN-13 | 978-1-4842-2114-3 / 9781484221143 |
Haben Sie eine Frage zum Produkt? |
Größe: 3,0 MB
DRM: Digitales Wasserzeichen
Dieses eBook enthält ein digitales Wasserzeichen und ist damit für Sie personalisiert. Bei einer missbräuchlichen Weitergabe des eBooks an Dritte ist eine Rückverfolgung an die Quelle möglich.
Dateiformat: PDF (Portable Document Format)
Mit einem festen Seitenlayout eignet sich die PDF besonders für Fachbücher mit Spalten, Tabellen und Abbildungen. Eine PDF kann auf fast allen Geräten angezeigt werden, ist aber für kleine Displays (Smartphone, eReader) nur eingeschrä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.
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.
aus dem Bereich