SPATIE

  • Products
  • Open Source
  • Courses
  • Web Development
VacanciesAboutBlogDocsGuidelinesMerch ↗ Log in

Front Line PHP

  1. Introduction
  2. Getting started with PHP 8

  3. Automatically upgrading your code to PHP 8 using Rector Free
  4. New features in PHP 8

  5. The Stringable interface Free
  6. The match expression Free
  7. Object classnames Free
  8. Improved exceptions Free
  9. Named arguments Free
  10. Promoted properties Free
  11. The nullsafe operator Free
  12. Three new string functions Free
  13. Union types Free
  14. Adding meta data using attributes Free
  15. Exploring WeakMaps Free
  16. Trailing commas in function definitions Free
  17. New features in PHP 8.1

  18. Improvements to Array Spreading Free
  19. Readonly Properties Free
  20. Enums Free
  21. First-class callables Free
  22. Intersection Types Free
  23. The Never Type Free
Learn how to build modern applications using PHP

Adding meta data using attributes

Attributes are often known as annotations in other languages. PHP has built-in support for them since PHP 8.

Links

  • Front Line PHP: the book that explains all PHP 8 features and modern PHP in depth
  • spatie/laravel-route-attributes: the sample package from the video
  • The attributes RFC

Previous: Union types Next: Exploring WeakMaps
  • Products
  • Open Source
  • Courses
  • Web Development
VacanciesAboutBlogDocsGuidelinesMerch ↗ Log in

Kruikstraat 22, Box 12
2018 Antwerp, Belgium
info@spatie.be
+32 3 292 56 79
  • GitHub
  • Instagram
  • LinkedIn
  • Twitter
  • Bluesky
  • Mastodon
  • YouTube
  • Privacy
  • Disclaimer

+32 3 292 56 79

Our office is closed now, email us instead