Download the PHP package didweb/slug without Composer

On this page you can find all versions of the php package didweb/slug. 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 slug

:de: Slug

Dises ist ein kleine Script um Slug zu machen.

Installation.

Installation des Komponisten in der composer.json setzen ...

In der app/AppKernel.php put setzen ...

In der Konfigurationsdatei: app/config/config.yml ...

Beispiel Verwendung

Wenn Sie den Dienst im Controller Nutzung verwenden möchten es folgt ....

Der Standard-Code ist der Bindestrich - Separator. Sie können den Separator ändern, mit dem Sie, indem sie als Parameter in der clean Funktion wollen. Der Spacer ist ein optionaler Parameter so, wenn nicht spezifisch wird der Bindestrich - Standard.

Beispiel des Separators für eine Unterstreichungs modifizierende _:


:uk: Slug

It is a small script to make Slugs.

Installation

Installation using composer, put in composer.json file ...

In the app/AppKernel.php file put put ...

In the configuration file: app/config/config.yml import the service like this:

Example of use

When you want to use the service inside the controller use it as follows ....

The default code has the - half-dash as a separator. You can change the separator you want by passing it as a parameter in the cleaning function. The separator is an optional parameter so if you do not specify it you will have the default - by default.

Example modifying the separator by a dash under _:


:es: Slug

Es un pequeño script para realizar Slugs.

Instalación

Instalación mediante composer, poner en el archivo composer.json ...

En el archivo app/AppKernel.php poner poner...

En el archivo de configuración: app/config/config.yml importar el servicio de esta manera:

Ejemplo de uso

Cuando quieras utilizar el servicio dentro del controlador utilízalo de la siguiente manera....

El código por defecto tiene el guión medio - como separador. Puedes cambiar el separador por el que tu quieras pasándolo como un parámetro en la función clean. El separador es un parámetro opcional así que si no lo especificas tendrá el guión medio - por defecto.

Ejemplo modificando el separador por un guión bajo _:


All versions of slug with dependencies

PHP Build Version
Package Version
No informations.
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 didweb/slug contains the following files

Loading the files please wait ....