Download the PHP package tobento/service-slugifier without Composer

On this page you can find all versions of the php package tobento/service-slugifier. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package service-slugifier

Slugifier Service

The slugifier service provides interfaces to convert a string into a slug with a default implementation.

Table of Contents

Getting started

Add the latest version of the Slugifier service project running this command.

Requirements

Highlights

Documentation

Basic Usage

Creating Slugifier

You may use the to easily create a slugifier.

Creating Custom Slugifier

You may use the class to build a custom slugifier by using the Available Modifiers.

Generating Slugs

Use the method to generate a slug from the given string.

Available Modifiers

Alpha Num Only Modifier

This modifier replaces non-alpha-num characters with the defined .

Limit Length Modifier

This modifier limits a string to the defined .

Lowercase Modifier

This modifier make a string lowercase.

Modify Modifier

Use this modifier to create a custom modifier using a .

Prevent Dublicate Modifier

This modifier prevents dublicate slugs. This modifier should be added last!

You may check out the Slugs section to learn more about it.

Regex Modifier

Use this modifier to modify the given string using the defined .

Replace Modifier

This modifier replaces the defined list from the given string.

Strip Tags Modifier

This modifier strip tags from the given string.

Trim Modifier

This modifier strip tags from the given string.

Dictionaries

English Dictionary Modifier

This modifier uses the english dictionary for replacements on locales starting with .

French Dictionary Modifier

This modifier uses the french dictionary for replacements on locales starting with .

German Dictionary Modifier

This modifier uses the german dictionary for replacements on locales starting with .

Italian Dictionary Modifier

This modifier uses the italian dictionary for replacements on locales starting with .

Latin Dictionary Modifier

This modifier uses the latin dictionary for replacements on all locales.

Custom Modifier

You may create a custom modifier by implementing the :

Slugs

You may use the class to check if a slug exists to prevent dublicate slugs.

addResource

You may use the method to add resources.

exists

Use the method to check whether a slug exists or not.

findSlug

Use the method which returns a single slug by the specified parameters or null if not found.

Available Resources

Array Resource

Custom Resource

You may create a custom resource by implementing the :

Slugifiers

You may use the class to add multiple slugifiers for later usage.

add

You may prefer the method to add a slugifier.

has

Use the method to check whether a slugifier exists or not.

get

Use the method to get a slugifier. If the slugifier does not exist a fallback slugifier is returned.

names

The method returns all slugifier names.

Credits


All versions of service-slugifier with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package tobento/service-slugifier contains the following files

Loading the files please wait ....