Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aaronpk/reserved-usernames-php

A list of reserved usernames to prevent url collision with resource paths. Packaged as a Composer library. Source data: https://github.com/shouldbee/reserved-usernames
https://github.com/aaronpk/reserved-usernames-php

Last synced: 19 days ago
JSON representation

A list of reserved usernames to prevent url collision with resource paths. Packaged as a Composer library. Source data: https://github.com/shouldbee/reserved-usernames

Awesome Lists containing this project

README

        

Reserved Usernames
==================

This is a PHP packaged version of [shouldbee/reserved-usernames](https://github.com/shouldbee/reserved-usernames) available as a Composer package from packagist.org.

I update this library based on updates published to the source data.

Installation
------------

```
composer require p3k/reserved-usernames
```

Usage
-----

```php
$username = 'login';
if(p3k\is_reserved_username($username)) {
// Throw an error
}
```