PHPackages                             alexsmart/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. alexsmart/converter

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

alexsmart/converter
===================

convert data html to csv or csv to html, prepare data for convert and other

01PHP

Since Apr 20Pushed 5y ago1 watchersCompare

[ Source](https://github.com/AlexMetalcore/converter)[ Packagist](https://packagist.org/packages/alexsmart/converter)[ RSS](/packages/alexsmart-converter/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Установка
---------

[](#установка)

```
    composer require alexsmart/converter
```

Использование
-------------

[](#использование)

Создайте объект `ConverterService`:

```
    use \ConverterService\ConverterService;

    $service = new \ConverterService\ConverterService();
```

Если вы хотите получить преобразование с реквеста данные в формат с HTML в CSV или наборот Вам нужно реализовать ConverterServicesInterface

```
    $service->getFormatedData($requestObject, new Formatter())
```

Если вы хотите конвертировать PDF в html, Вам нужно передать либо строку либо url, либо закодированный формат pdf. Опции для оптимизации html строки на выходе.

Пример опций

```
    Формат опций массив вида
     ['image' => 'png', 'style' => [
              'p' => 'position:absolute; top:70px; left:65px; white-space:nowrap',
          ]
     ]

```

```
    $service->convertPdfToHtml('filepath, url or base64 pdf', $options[])
```

По умолчанию данные по урл получаем через file\_get\_contents. Если вы хотите использовать http client то можете его передать таким образом

```
    $service->setHttpClient($httpClient)->convertPdfToHtml('filepath, url or base64 pdf', $options[])
```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/efacc3b125ee7385e09e48590484649cda23ddbee0d34106a9bbd32000bf5d7d?d=identicon)[alex\_smart](/maintainers/alex_smart)

---

Top Contributors

[![AlexMetalcore](https://avatars.githubusercontent.com/u/15331725?v=4)](https://github.com/AlexMetalcore "AlexMetalcore (38 commits)")

### Embed Badge

![Health badge](/badges/alexsmart-converter/health.svg)

```
[![Health](https://phpackages.com/badges/alexsmart-converter/health.svg)](https://phpackages.com/packages/alexsmart-converter)
```

###  Alternatives

[zservices/query

Pacote para consultas em serviços do governo.

131.1k](/packages/zservices-query)

PHPackages © 2026

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