Dangerous Usernames
![Software License][ico-license]
, (*1)
This is simply a list dangerous usernames that you can include in your project. It was inspired by this article., (*2)
It comes with a composer.json file and DangerousUserNames class for easy inclusion in PHP projects.
But, since it is simply a txt file, you can use it with any platform., (*3)
Install
Via Composer:, (*4)
``` bash
$ composer require caseyamcl/dangerous_usernames, (*5)
Or, use whatever programming language you want to open the textfile and read the contents into a list/array (one item per line).
## Usage
``` php
use DangerousUserNames\DangerousUserNames;
// string[]
$dangerousNames = new DangerousUserNames();
$dangerousNames->inList('admin'); // case-insensitive
$dangerousNames->inList('ADMIN', true); // case-sensitive
Contributing
Pull requests are welcome! If you have any user names to add, please do so in alphabetical order., (*6)
Credits
License
The MIT License (MIT). Please see License File for more information., (*7)