Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/68publishers/doctrine-sluggable
:abc: Doctrine Sluggable extension
https://github.com/68publishers/doctrine-sluggable
doctrine sluggable
Last synced: about 1 month ago
JSON representation
:abc: Doctrine Sluggable extension
- Host: GitHub
- URL: https://github.com/68publishers/doctrine-sluggable
- Owner: 68publishers
- License: mit
- Created: 2019-09-30T19:18:55.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T00:16:22.000Z (about 2 years ago)
- Last Synced: 2024-11-16T19:39:15.586Z (2 months ago)
- Topics: doctrine, sluggable
- Language: PHP
- Size: 41 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
> :warning: Warning! This package does not have active support, it exists only for the historical needs of the author.
# Doctrine Sluggable
:abc: Doctrine Sluggable extension!
Simple usage and integration into [Nette Framework](https://github.com/nette).
## Installation
The best way to install `68publishers/doctrine-sluggable` is using Composer:
```bash
$ composer require 68publishers/doctrine-sluggable
```then register `SluggableEventSubscriber` into `EventManager` like this:
```php
getEventManager()->addEventSubscriber($subscriber);
```but you'd better use compiler extension if you are using `Nette` Framework:
```yaml
extensions:
sluggable: SixtyEightPublishers\DoctrineSluggable\Bridge\Nette\SluggableExtension
```## Usage
Example entity:
```php
slug) {
throw new RuntimeException('Slug is not set.');
}return $this->slug;
}
}
```## Options
@todo
## Contributing
Before committing any changes, don't forget to run
```bash
$ vendor/bin/php-cs-fixer fix --config=.php_cs.dist -v --dry-run
```and
```bash
$ vendor/bin/tester ./tests
```