zero-to-prod/psr4-classname

Generates a valid PSR-4 Compliant Classname from a string.


Keywords
zero-to-prod, psr4 classname, psr4-classname, php, psr4
License
MIT

Documentation

Zerotoprod\Psr4Classname

Repo GitHub Actions Workflow Status Packagist Downloads php Packagist Version License

A regular expression to check an Email string.

Installation

Install the package via Composer:

composer require zero-to-prod/psr4-classname

Usage

use Zerotoprod\Psr4Classname\Classname;

Classname::generate('weird%characters*in^name', '.php'); // 'WeirdCharactersInName.php';