Skip to content

icarojobs/php-attribute-validation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Attribute Validation

This repository is dedicated to the study of PHP Attributes, a feature introduced in PHP 8.0. The main focus is on attribute validation.

Overview

PHP Attributes offer a way to add metadata to classes, methods, properties, and more. This metadata can then be retrieved and used in various ways, making attributes a powerful tool for controlling how your code behaves.

In this repository, we explore how to use attributes for validation purposes. This can help ensure that your code is being used correctly and can prevent bugs and errors.

Getting Started

To get started with this repository, you will need:

  • PHP 8.0 or later
  • A basic understanding of PHP syntax and features

Examples

The repository includes examples of how to use attributes for validation. These examples demonstrate how you can use attributes to enforce certain conditions on your code.

Contributing

Contributions are welcome! If you have any ideas or suggestions, feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License.

For more details:

About

My personal studies on PHP attributes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages