Zum Hauptinhalt springen Zur Suche springen Zur Hauptnavigation springen

PHP 8 Revealed

39,99 €

Sofort verfügbar, Lieferzeit: Sofort lieferbar

Format auswählen

PHP 8 Revealed, Apress
Use Attributes, the JIT Compiler, Union Types, and More for Web Development​
Von Gunnard Engebreth, im heise Shop in digitaler Fassung erhältlich

Produktinformationen "PHP 8 Revealed"

Discover the new and updated features of PHP 8, such as the JIT compiler, union types, and attributes, with code examples of each. For each feature, the author includes real-life cases for its use and explains its benefits.

WHAT YOU WILL LEARN

* Utilize the new features of PHP 8 and modern development technologies
* Work with the JIT compiler in PHP 8
* Discover PHP 8 using real-life cases
* Increase your available resources to become more valuable in your development team

WHO THIS BOOK IS FOR

Experienced PHP programmers new to PHP 8.

GUNNARD ENGEBRETH began coding at the age of 11 through a “Learning BASIC” book given to him by his father. Technology was changing fast and Gunnard rode the wave from 1200 to 56k baud modems. Logging in to BBSs, Prodigy, Compuserve, Delphi and IRC he could see the world changing and he wanted to be a part of it. He soon got involved in the ansi/demo scene, making several application generators for many groups in the 90’s. Visual Basic was the next language of choice allowing him to develop “tools” for online systems such as AOL. This introduced many aspects of development, security and UI while they were still in their infancy. Once the WWW arrived via Mindspring in Atlanta, Ga. Gunnard quickly joined in the race for the web. Learning HTML, PERL and Linux (Slackware at the time) he began to build his skill-set which lead to a full-time Sysadmin position at the age of 20 (2000) at Activegrams/Silverpop. Gunnard has moved around the IT industry from SAN/NAS storage at IBM to custom Wordpress sites for marketing companies, but one thing has stayed the same, a passion for learning and problem solving. Gunnard also DJ’s Drum and Bass as Section31, Playing drums and baking bread (doughcode.com).

1. Getting Started

2. Setting up your development environment

3. Devilbox

4. Vagrant

5. PHP 8 The Basics

6. Whats new

JIT compiler

union types

attributes

The nullsafe operator

Named arguments

Attributes

Match expression

Constructor property promotion

New static return type

New mixed type

Throw expression

Inheritance with private methods

Weak maps

Allowing ::class on objects

Non-capturing catches

Trailing comma in parameter lists

Create DateTime objects from interface

New Stringable interface

New str_contains() function New str_starts_with() and str_ends_with() functions

New fdiv() function

New get_debug_type() function

New get_resource_id() function

Abstract methods in traits improvements

Object implementation of token_get_all()

Variable syntax tweaks

Type annotations for internal functions

ext-json always available

7. Breaking Changes

Consistent type errors

Reclassified engine warnings

The @ operator no longer silences fatal errors

Default error reporting level

Default PDO error mode

Concatenation precedence

Stricter type checks for arithmetic and bitwise operators Reflection method signature changes

Stable sorting

Fatal error for incompatible method signatures

8. Frameworks

Laravel

SlimPHP

Composer

Symphony

9. The Advanced

Maintaining code

Github

Gitlab Git workflows

Code Style

PSR7

phpDoc

10. Refactoring and optimization

A. Giving Back

Artikel-Details

Anbieter:
Apress
Autor:
Gunnard Engebreth
Artikelnummer:
9781484268186
Veröffentlicht:
29.01.21