notion-commotion/attribute-validator

Finds attributes which do not have classes assigned.

Installs: 98

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 1

pkg:composer/notion-commotion/attribute-validator

1.01 2022-01-19 16:11 UTC

This package is auto-updated.

Last update: 2025-10-06 21:05:49 UTC


README

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();