Skip to content

NotionCommotion/attribute-validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

attribute-validator

Used to find PHP 8 attributes without defined classes. While annotations will result in error if the class does not exist, not true for attributes. LICENSE

Installation

composer require notion-commotion/attribute-validator

Usage

<?php
use NotionCommotion\AttributeValidator\AttributeValidator;
$path = 'src';              // All files in directory
//or
$path = 'src/somefile.php'; // A single file 
$attributeValidator = AttributeValidator::create($path);
$attributeValidator->validate();

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages