PHPackages                             mremi/database-encoder - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. mremi/database-encoder

ActiveLibrary[Database &amp; ORM](/categories/database)

mremi/database-encoder
======================

A PHP5 library to fix database encoding

v0.0.1(11y ago)324MITPHPPHP &gt;=5.3.3

Since Nov 6Pushed 9y ago1 watchersCompare

[ Source](https://github.com/mremi/DatabaseEncoder)[ Packagist](https://packagist.org/packages/mremi/database-encoder)[ Docs](https://github.com/mremi/DatabaseEncoder)[ RSS](/packages/mremi-database-encoder/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Database encoder library
========================

[](#database-encoder-library)

This library allows you to fix database encoding.

Who has never seen some accented characters like "ActivÃ©" instead of "Activé"?

**Basic Docs**

- [Installation](#installation)
- [Encode tables](#encode-tables)
- [Encode database](#encode-database)
- [Contribution](#contribution)

Installation
------------

[](#installation)

Only 1 step:

### Download DatabaseEncoder using composer

[](#download-databaseencoder-using-composer)

Add DatabaseEncoder in your composer.json:

```
{
    "require": {
        "mremi/database-encoder": "dev-master"
    }
}
```

Now tell composer to download the library by running the command:

```
$ php composer.phar update mremi/database-encoder
```

Composer will install the library to your project's `vendor/mremi` directory.

**Feel free to dump your database before use this library.**

This library supports *dry run* mode: look at your logs, you will see SQL queries which will be executed.

Encode tables
-------------

[](#encode-tables)

```
