Closed aadmathijssen closed 1 year ago
Today I have published the CLI wrapper as a separate Composer package.
Therefore, I will close this issue.
If there is any interest in the future to add a command-line interface to the library itself, this issue can be reopened.
When writing command-line scripts, I frequently have the need for a command-line tool that allows me to transform strings to slugs. Because none of the existing CLI tools satisfied my needs, I have created a (still unpublished) CLI wrapper for the
cocur/slugify
package, where each option that can be supplied via theSlugify
constructor is available as a command-line option.For instance the following example transforms a string to slug using the
default,turkish
rulesets and_
as separator, where tags are stripped and trimming is disabled:Although I was planning on releasing this tool as a separate Composer package, I thought it might be beneficial to add this functionality to the
cocur/slugify
package instead. Is that something that might be considered? If so, then I will try to create a PR for this.