mirror of
https://github.com/Respect/Validation.git
synced 2026-03-16 15:25:45 +01:00
24 lines
380 B
Markdown
24 lines
380 B
Markdown
# Slug
|
|
|
|
- `Slug()`
|
|
|
|
Validates slug-like strings:
|
|
|
|
```php
|
|
v::slug()->validate('my-wordpress-title'); // true
|
|
v::slug()->validate('my-wordpress--title'); // false
|
|
v::slug()->validate('my-wordpress-title-'); // false
|
|
```
|
|
|
|
## Changelog
|
|
|
|
Version | Description
|
|
--------|-------------
|
|
0.3.9 | Created
|
|
|
|
***
|
|
See also:
|
|
|
|
- [PhpLabel](PhpLabel.md)
|
|
- [Url](Url.md)
|
|
- [VideoUrl](VideoUrl.md)
|