Download the PHP package maatify/php-slug without Composer

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

# Maatify Slug ![Maatify.dev](https://www.maatify.dev/assets/img/img/maatify_logo_white.svg) [![Status](https://img.shields.io/badge/Status-Release%20Candidate-orange.svg)](#publication-state) [![Version](https://img.shields.io/badge/Version-v1.0.0--rc.2-blue.svg)](https://packagist.org/packages/maatify/php-slug) [![PHP](https://img.shields.io/badge/PHP-^8.4-777bb4.svg?logo=php&logoColor=white)](#requirements) [![License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE) [![PHPStan](https://img.shields.io/badge/PHPStan-Max-brightgreen.svg)](#quality-status) [![Packagist](https://img.shields.io/badge/Packagist-Distribution-blue.svg)](https://packagist.org/packages/maatify/php-slug) [![Monthly Downloads](https://img.shields.io/packagist/dm/maatify/php-slug.svg)](https://packagist.org/packages/maatify/php-slug) [![Total Downloads](https://img.shields.io/packagist/dt/maatify/php-slug.svg)](https://packagist.org/packages/maatify/php-slug) [![Maatify Ecosystem](https://img.shields.io/badge/Maatify-Ecosystem-blueviolet)](https://github.com/Maatify) [![Install](https://img.shields.io/badge/Install-1.0.0--rc.2%40RC-blue.svg)](#installation) [![Usage Guide](https://img.shields.io/badge/Usage-Guide-blue.svg)](docs/guides/USAGE_GUIDE.md) [![Examples](https://img.shields.io/badge/Examples-View-blue.svg)](examples/) [![Package Reference](https://img.shields.io/badge/Reference-Read-blue.svg)](SLUG_PACKAGE_REFERENCE.md) [![Changelog](https://img.shields.io/badge/Changelog-View-blue.svg)](CHANGELOG.md) [![Security Policy](https://img.shields.io/badge/Security-Policy-blue.svg)](SECURITY.md) [![Contributing Guide](https://img.shields.io/badge/Contributing-Guide-blue.svg)](CONTRIBUTING.md) An independent PHP slug lifecycle engine with clear boundaries between the slug domain, the Host, URLs, HTTP, and SEO.

Publication State

v1.0.0-rc.2 is the current Published Release Candidate available through Packagist. It remains Pre-Stable, does not create a Stable support line, and there is no Published Stable release. Publication does not imply Stable readiness.

The current public contract is owned by SLUG_PACKAGE_REFERENCE.md. Execution evidence is maintained in GitHub PR and CI history rather than duplicated in this consumer-facing README.

Package Summary

maatify/php-slug is a standalone PHP library for slug generation, canonicalization, scoped ownership, lifecycle management, aliases, history, resolution, and package-owned PDO MySQL persistence.

Key Features

Requirements

Requirement Value
PHP ^8.4
Database PDO MySQL; mysql:8.0.36 is the CI reproducibility target
Extensions ext-intl, ext-mbstring, ext-pdo, ext-pdo_mysql
Direct packages maatify/exceptions ^1.0, maatify/shared-common ^1.0, maatify/persistence ^1.1

Built-in profiles require the normalization and transliteration capabilities provided by ext-intl; the package verifies those capabilities at runtime. No exact ICU or Unicode version is required from the consumer.

Installation

Install the published Release Candidate with:

Quick Usage

The stateless path does not require a database or Host framework:

For the persisted path, the Host injects a PDO connection, a ReservedSlugPolicyInterface, and a ClockInterface into SlugEngineFactory::create(...). See docs/guides/USAGE_GUIDE.md for the complete workflow.

Public Runtime API

The public Runtime provides actual paths for:

This overview does not replace the complete inventory and contracts in SLUG_PACKAGE_REFERENCE.md.

Examples

The canonicalization and custom-profile examples run without Docker. The persisted example requires the Integration environment provided by tools/ci/run-gate.sh.

Documentation

Transactions and Concurrency

On the persisted path, the package owns the transaction when the Host has no outer transaction and uses a savepoint when participating in an outer transaction where the capability is supported. Exact claims rely on the unique Registry constraint as the final race authority and use lifecycle mutation CAS and idempotency according to the contract. See SLUG_PACKAGE_REFERENCE.md for the normative details.

Security and Trust Boundaries

The Host owns the connection, PDO configuration, entity existence, routing, HTTP, SEO, and authorization. The package does not create hidden connections or use Host foreign keys or joins. For vulnerability reports, see Security Policy; do not disclose private vulnerability details through GitHub Issues.

Exceptions and Error Propagation

Package-defined semantic and domain failures use the SlugExceptionInterface / SlugDomainExceptionInterface hierarchy described in the Package Reference. External infrastructure Throwable instances, including PDO failures outside the documented semantic conversions, may propagate unchanged according to the current contract.

Quality Status

The package is maintained behind the repository's configured CI and quality gates. Current execution evidence is maintained in GitHub PR and CI history. The Published Release Candidate remains Pre-Stable and does not claim Stable readiness.

Development and Testing

For repository setup, tests, and example gates, see CONTRIBUTING.md. The persisted example requires the canonical Compose lifecycle and disposable MySQL; do not use an external MySQL instance.

License

Licensed under the MIT License.

👤 Author

Engineered by Mohamed Abdulalim (@megyptm)
Backend Lead & Technical Architect
https://www.maatify.dev


[Built with ❤️ by Maatify.dev — Unified Ecosystem for Modern PHP Libraries](https://www.maatify.dev)

All versions of php-slug with dependencies

PHP Build Version
Package Version
Requires ext-intl Version *
ext-mbstring Version *
ext-pdo Version *
ext-pdo_mysql Version *
maatify/exceptions Version ^1.0
maatify/persistence Version ^1.1
maatify/shared-common Version ^1.0
php Version ^8.4
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 maatify/php-slug contains the following files

Loading the files please wait ...