PHP транслит с русского на латиницу с поддержкой PSR

Overview

PHP PSR Transliterator

Total Downloads Total Downloads Total Downloads Total Downloads

По-русски

Особенности

  • Транслит с русского на латиницу;
  • Поддержка ISO9 вариант Б (ГОСТ 7.79—2000);
  • Поддержка ЧПУ;
  • Полное покрытие тестами;

Установка

composer require nikidze/php-psr-transliterate

Примеры

Простой транслит

<?php
require __DIR__ . '/../vendor/autoload.php';

use Nikidze\Transliterate\Transliterator;

// Aleksandr Sergeevich Pushkin
echo Transliterator::translit('Александр Сергеевич Пушкин');
// s"esh' eschyo e'tix myagkix francuzskix bulok, da vy'pej chayu
echo Transliterator::translit('съешь ещё этих мягких французских булок, да выпей чаю', 'iso9');

Транслит в ЧПУ

// aleksandr-sergeevich-pushkin-dubrovskiy
echo Transliterator::friendlyUrl('Александр Сергеевич Пушкин: "Дубровский"');

Зависимости

  • php >= 7.2.0

English

Features

  • Transliterates from Russian into Latin;
  • Support ISO9 transliteration;
  • Support friendly URLs;
  • Full test coverage;

Install

composer require nikidze/php-psr-transliterate

Examples

Simple

<?php
require __DIR__ . '/../vendor/autoload.php';

use Nikidze\Transliterate\Transliterator;

// Aleksandr Sergeevich Pushkin
echo Transliterator::translit('Александр Сергеевич Пушкин');
// s"esh' eschyo e'tix myagkix francuzskix bulok, da vy'pej chayu
echo Transliterator::translit('съешь ещё этих мягких французских булок, да выпей чаю', 'iso9');

####Friendly URLs

// aleksandr-sergeevich-pushkin-dubrovskiy
echo Transliterator::friendlyUrl('Александр Сергеевич Пушкин: "Дубровский"');

Require

  • php >= 7.2.0
You might also like...
Error handler with PSR-7 support

Jasny Error Handler Error handler with PSR-7 support. Installation The Jasny Error Handler package is available on packagist. Install it using compose

Pug Renderer - a (heavily based on the PhpRenderer) renderer for rendering Pug view scripts into a PSR-7 Response object

Pug Renderer This is a (heavily based on the PhpRenderer) renderer for rendering Pug view scripts into a PSR-7 Response object. It works well with Sli

The Current US Version of PHP-Nuke Evolution Xtreme v3.0.1b-beta often known as Nuke-Evolution Xtreme. This is a hardened version of PHP-Nuke and is secure and safe. We are currently porting Xtreme over to PHP 8.0.3
The Current US Version of PHP-Nuke Evolution Xtreme v3.0.1b-beta often known as Nuke-Evolution Xtreme. This is a hardened version of PHP-Nuke and is secure and safe. We are currently porting Xtreme over to PHP 8.0.3

2021 Nightly Builds Repository PHP-Nuke Evolution Xtreme Developers TheGhost - Ernest Allen Buffington (Lead Developer) SeaBeast08 - Sebastian Scott B

A sampling profiler for PHP written in PHP, which reads information about running PHP VM from outside of the process.

Reli Reli is a sampling profiler (or a VM state inspector) written in PHP. It can read information about running PHP script from outside of the proces

PHP Meminfo is a PHP extension that gives you insights on the PHP memory content

MEMINFO PHP Meminfo is a PHP extension that gives you insights on the PHP memory content. Its main goal is to help you understand memory leaks: by loo

A sampling profiler for PHP written in PHP, which reads information about running PHP VM from outside of the process.

Reli Reli is a sampling profiler (or a VM state inspector) written in PHP. It can read information about running PHP script from outside of the proces

A multithreaded application server for PHP, written in PHP.

appserver.io, a PHP application server This is the main repository for the appserver.io project. What is appserver.io appserver.io is a multithreaded

Easy to use utility functions for everyday PHP projects. This is a port of the Lodash JS library to PHP

Lodash-PHP Lodash-PHP is a port of the Lodash JS library to PHP. It is a set of easy to use utility functions for everyday PHP projects. Lodash-PHP tr

A PHP 5.3+ and PHP 7.3 framework for OpenGraph Protocol

Opengraph Test with Atoum cd Opengraph/ curl -s https://getcomposer.org/installer | php php composer.phar install --dev ./vendor/atoum/atoum/bin/atoum

Releases(0.1)
Owner
null
A small, modern, PSR-7 compatible PSR-17 and PSR-18 network library for PHP, inspired by Go's net package.

Net A small, modern, PSR-7 compatible PSR-17 and PSR-18 network library for PHP, inspired by Go's net package. Features: No hard dependencies; Favours

Minibase 16 Jun 7, 2022
Testing utilities for the psr/log package that backs the PSR-3 specification.

FIG - Log Test Testing utilities for the psr/log package that backs the PSR-3 specification. Psr\Log\Test\LoggerInterfaceTest provides a base test cla

PHP-FIG 3 Nov 19, 2022
🙈 Code style configuration for `php-cs-fixer` based on PSR-12.

php-code-style Code style configuration for friendsofphp/php-cs-fixer based on PSR-12. Installation Step 1 of 3 Install gomzyakov/php-code-style via c

Alexander Gomzyakov 5 Nov 27, 2022
Simple yet powerful, PSR-compliant, Symfony-driven PHP Blog engine.

brodaty-blog ✒️ Simple Blog Engine based on pure Markdown files. ?? Works without database, caches HTML templates from Markdown files. ?? Fast and ext

Sebastian 3 Nov 15, 2022
🍪 bakes cookies for PSR-7 messages

?? bakes cookies for PSR-7 messages

Hans Ott 35 Jul 13, 2022
[WIP] PSR-20 repository

[WIP] PSR Clock Work in Progress! This repository holds the interface for PSR-20. Note that this is not a clock of its own. It is merely an interface

PHP-FIG 46 Dec 30, 2022
The Cache component provides an extended PSR-6 implementation for adding cache to your applications.

Symfony PSR-6 implementation for caching The Cache component provides an extended PSR-6 implementation for adding cache to your applications. It is de

Symfony 3.8k Jan 3, 2023
A simple implementation of the api-problem specification. Includes PSR-15 support.

ApiProblem This library provides a simple and straightforward implementation of the IETF Problem Details for HTTP APIs, RFC 7807. RFC 7807 is a simple

Larry Garfield 236 Dec 21, 2022
This is an implementation of PSR specification. It allows you to send and consume message with Redis store as a broker.

This is an implementation of PSR specification. It allows you to send and consume message with Redis store as a broker.

Enqueue 35 Nov 4, 2022
This package provides a set of factories to be used with containers using the PSR-11 standard for an easy Doctrine integration in a project

psr-container-doctrine: Doctrine Factories for PSR-11 Containers Doctrine factories for PSR-11 containers. This package provides a set of factories to

Roave, LLC 84 Dec 14, 2022