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

https://github.com/amirrh6/simpleslug

SimpleSlug is an easy-to-use PHP library that allows you to create random, entertaining, and occasionally meaningful slugs (combinations).
https://github.com/amirrh6/simpleslug

php php8 random-words slug slug-generator

Last synced: 2 months ago
JSON representation

SimpleSlug is an easy-to-use PHP library that allows you to create random, entertaining, and occasionally meaningful slugs (combinations).

Awesome Lists containing this project

README

        

# SimpleSlug

SimpleSlug is an easy-to-use PHP library that allows you to create random, entertaining, and occasionally meaningful slugs (combinations).

Say goodbye to random strings like 'q8s46k0' and hello to catchy slugs like 'gigantic flat dog,' making them much easier to recognize.

SimpleSlug is still in early development stages so expect bugs and non-backward compatible changes.

Use Github Issues for comments, bug reports and questions.

## Installation:
`composer require amirrh6/simpleslug`

## Usage:

```php
generate(words_count: 4) . "\n");
} else {
print_r($simpleSlug->generate() . "\n");
}
}

/*
// May output something similar to:

Cubic African rabbit
Flat yellow Italian fox
Curious blue lamp
Italian traveling cat
American leather cat
*/
```
## License:

[GPL 2.0 only](https://spdx.org/licenses/GPL-2.0-only.html)