Property | Type | Description | |
---|---|---|---|
$options | mixed>\array | ||
$provider | Cocur\Slugify\RuleProvider\RuleProviderInterface | ||
$rules | string>\array |
Method | Description | |
---|---|---|
__construct ( array $options = [], Cocur\Slugify\RuleProvider\RuleProviderInterface $provider = null ) | ||
activateRuleSet ( string $ruleSet ) : |
||
addRule ( string $character, string $replacement ) : |
Adds a custom rule to Slugify. | |
addRules ( array $rules ) : |
Adds multiple rules to Slugify. | |
create ( array $options = [] ) : |
Static method to create new instance of {@see Slugify}. | |
slugify ( string $string, string | array | null $options = null ) : string | Returns the slug-version of the string. |
public __construct ( array $options = [], Cocur\Slugify\RuleProvider\RuleProviderInterface $provider = null ) | ||
$options | array | |
$provider | Cocur\Slugify\RuleProvider\RuleProviderInterface |
public activateRuleSet ( string $ruleSet ) : |
||
$ruleSet | string | |
return |
protected RuleProviderInterface,Cocur\Slugify\RuleProvider $provider | ||
return | Cocur\Slugify\RuleProvider\RuleProviderInterface |