PHPackages                             yupmin/php-chardet - 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. yupmin/php-chardet

ActiveLibrary

yupmin/php-chardet
==================

php-chardet

1.0.1(10y ago)22.6k↓100%1MITPHPPHP &gt;=5.3CI failing

Since Sep 10Pushed 10y ago1 watchersCompare

[ Source](https://github.com/yupmin/php-chardet)[ Packagist](https://packagist.org/packages/yupmin/php-chardet)[ RSS](/packages/yupmin-php-chardet/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (5)Versions (3)Used By (0)

php-chardet [![Build Status](https://camo.githubusercontent.com/3a1321d80b11b8426bcd4b54aae6ab16e6702be2d6b33daa17087546ff5a07bf/68747470733a2f2f7472617669732d63692e6f72672f7975706d696e2f7068702d636861726465742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/yupmin/php-chardet) [![Coverage Status](https://camo.githubusercontent.com/8f23f86e83bd86df86363c3d85c2dad4f89634eb4ce1eb581774d32ec81e4921/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f7975706d696e2f7068702d636861726465742f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/yupmin/php-chardet?branch=master) [![Packagist](https://camo.githubusercontent.com/0543341c7b38999ef54c279714ca7a54d611a601ff5ea0e657c0a560930e52bf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7975706d696e2f7068702d636861726465742e737667)](https://packagist.org/packages/yupmin/php-chardet) [![Packagist](https://camo.githubusercontent.com/a0515d0cf4ce9a9b80a25bf3f4a092270527ef237c527f2af7824d24be3f208a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7975706d696e2f7068702d636861726465742e737667)](https://packagist.org/packages/yupmin/php-chardet)
========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#php-chardet----)

Introduction
------------

[](#introduction)

PHP wrapper around the `chardet` command

Table of contents:
------------------

[](#table-of-contents)

- [Installation](#installation)
- [How to use](#how-to-use)
- [License](#license)
- [Reference](#reference)

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

[](#installation)

### 1 - Install chardet

[](#1---install-chardet)

You should install [chardet](https://pypi.python.org/pypi/chardet):

#### Using pip:

[](#using-pip)

```
sudo pip install chardet
sudo ln -s /usr/local/bin/chardetect /usr/local/bin/chardet
```

#### On ubuntu linux:

[](#on-ubuntu-linux)

```
sudo apt-get install python-chardet
```

### 2 - Integration in your php project

[](#2---integration-in-your-php-project)

To use this library install it through [Composer](https://getcomposer.org/), run

```
composer require yupmin/php-chardet
```

How to use
----------

[](#how-to-use)

### Retrieve chardet container

[](#retrieve-chardet-container)

```
