PHPackages                             sgvsv/php-mass-files-converter - 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. sgvsv/php-mass-files-converter

ActiveLibrary

sgvsv/php-mass-files-converter
==============================

Mass recursive convert files in given directory from given encoding to UTF-8

v1.0(6y ago)037MITPHPPHP &gt;=7.1

Since Sep 3Pushed 6y ago1 watchersCompare

[ Source](https://github.com/sgvsv/php-mass-files-converter)[ Packagist](https://packagist.org/packages/sgvsv/php-mass-files-converter)[ Docs](https://github.com/sgvsv/php-mass-files-converter)[ RSS](/packages/sgvsv-php-mass-files-converter/feed)WikiDiscussions master Synced 4w ago

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

php-mass-files-converter
========================

[](#php-mass-files-converter)

Mass recursive convert files in given directory from given encoding to **UTF**. Class checks each file if it is already in UTF. In this case it will not be double-converted. It is possible to set file extensions to convert. And exclude some subdirs from converting.

Requirements
------------

[](#requirements)

For providing modern PHP features such as setting types in method's signatures **PHP7.1 or higher** is required.

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

[](#installation)

Best way to use this library is install it via composer:

```
composer require sgvsv/php-mass-files-converter
```

Usage example
-------------

[](#usage-example)

After installing you can convert files:

```
require_once __DIR__ . '/vendor/autoload.php';

use \sgvsv\FilesConverter\Converter;

//Argument is a directory to convert
//c:\\my\\dir in windows or /path/to/dir in linux
$converter = new Converter("c:\\my\\dir");

//Files with /vendor/ or /.git/ substrings in their paths will be ignored
$converter->setIgnoredPaths(['/vendor/', '/.git/']);

//Files with other extensions will be ignored
$converter->setExtensions(['txt', 'php']);

//Output list of files and detected encodings
echo $converter->preview();

//Files that wasn't in UTF will be replaced with converted files
//File that already was in UTF will not be changed
$converter->convert();
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2440d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/26738592?v=4)[Vasiliy](/maintainers/sgvsv)[@sgvsv](https://github.com/sgvsv)

---

Top Contributors

[![sgvsv](https://avatars.githubusercontent.com/u/26738592?v=4)](https://github.com/sgvsv "sgvsv (3 commits)")

---

Tags

utf-8convertencodingfiles

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sgvsv-php-mass-files-converter/health.svg)

```
[![Health](https://phpackages.com/badges/sgvsv-php-mass-files-converter/health.svg)](https://phpackages.com/packages/sgvsv-php-mass-files-converter)
```

###  Alternatives

[league/flysystem

File storage abstraction for PHP

13.6k639.1M2.1k](/packages/league-flysystem)[symfony/string

Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way

1.8k724.1M825](/packages/symfony-string)[nette/utils

🛠 Nette Utils: lightweight utilities for string &amp; array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.

2.1k394.3M1.5k](/packages/nette-utils)[mpdf/mpdf

PHP library generating PDF files from UTF-8 encoded HTML

4.7k77.1M490](/packages/mpdf-mpdf)[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.6k263.6M788](/packages/league-flysystem-aws-s3-v3)[paragonie/constant_time_encoding

Constant-time Implementations of RFC 4648 Encoding (Base-64, Base-32, Base-16)

901329.7M147](/packages/paragonie-constant-time-encoding)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
