2017 © Pedro Peláez
 

laravel-plugin laravel-forceutf8

Simple Laravel 5 service class for neitanod's forceutf8. https://github.com/neitanod/forceutf8

image

danielme85/laravel-forceutf8

Simple Laravel 5 service class for neitanod's forceutf8. https://github.com/neitanod/forceutf8

  • Monday, April 16, 2018
  • by danielme85
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,086 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 10 % Grown

The README.md

laravel-forceutf8

Simple Laravel 5 service class for neitanod's forceutf8: https://github.com/neitanod/forceutf8, (*1)

Install

Add to composer.json "require": { "danielme85/laravel-forceutf8": "dev-master", .... }, (*2)

If you use Laravel 5.5+ you could skip the next step as Composer/Laravel Auto-discovery has been enabled for this package., (*3)

Laravel 5.x

Add to your config/app.php under Service Providers, (*4)

``` //Service Provider danielme85\ForceUTF8\ForceUTF8ServiceProvider::class, //Facade 'Encoding' => danielme85\ForceUTF8\Encoding::class,, (*5)

```, (*6)

Lumen 5.x

Add to your boostrap/app.php file $app->register(danielme85\ForceUTF8\ForceUTF8ServiceProvider::class); ... $app->configure('app'); ... class_alias('danielme85\ForceUTF8\Encoding', 'Encoding'); $app->withFacades();, (*7)

Usage

use danielme85\ForceUTF8\Encoding; ... $newstring = Encoding::toUTF8($string); Chekout neitanod's repo for more information on how to use the Encoding class: https://github.com/neitanod/forceutf8, (*8)

The Versions

16/04 2018

dev-master

9999999-dev

Simple Laravel 5 service class for neitanod's forceutf8. https://github.com/neitanod/forceutf8

  Sources   Download

MIT

The Requires

 

by Daniel Mellum