<commit_before># bin-wrapper

[![Latest Stable Version](https://poser.pugx.org/itgalaxy/bin-wrapper/v/stable)](https://packagist.org/packages/itgalaxy/bin-wrapper)
[![Travis Build Status](https://img.shields.io/travis/itgalaxy/bin-wrapper/master.svg?label=build)](https://travis-ci.org/itgalaxy/bin-wrapper)
[![Build status](https://ci.appveyor.com/api/projects/status/immgvmhqmj3rv53t?svg=true)](https://ci.appveyor.com/project/evilebottnawi/bin-wrapper)
[![Coverage Status](https://coveralls.io/repos/github/itgalaxy/bin-wrapper/badge.svg?branch=master)](https://coveralls.io/github/itgalaxy/bin-wrapper?branch=master)

Binary wrapper that makes your programs seamlessly available as local dependencies

## Install

The utility can be installed with Composer:

```shell
$ composer require bin-wrapper
```

## Usage

```php
use BinWrapper\BinWrapper;

$url = 'https://github.com/itgalaxy/pngquant-bin/raw/master/bin-vendor';
$platform = strtolower(PHP_OS);
$binWrapper = new BinWrapper();
$binWrapper
    ->src($url . '/freebsd/x64/pngquant', 'darwin', 'x64')
    ->src($url . '/linux/x64/pngquant', 'linux', 'x64')
    ->src($url . '/linux/x86/pngquant', 'linux', 'x86')
    ->src($url . '/macos/pngquant', 'darwin')
    ->src($url . '/win/pngquant.exe', 'windowsnt')
    ->dest(__DIR__ . '/vendor-bin')
    ->use($platform === 'winnt' ? 'pngquant.exe' : 'pngquant')
    ->version('>=1.71');

$binWrapper->build(['--version']); // You can use `try {} catch {}` for catching exceptions
```

Get the path to your binary with `$binWrapper->path()`:

```php
echo $binWrapper->path();
```

## API

Coming soon

## Related

- [bin-wrapper](https://github.com/kevva/bin-wrapper) - Thanks you for inspiration.

## Contribution

Feel free to push your code if you agree with publishing under the MIT license.

## [Changelog](CHANGELOG.md)

## [License](LICENSE)
<commit_msg>Chore: remove coverage badge.<commit_after># bin-wrapper

[![Latest Stable Version](https://poser.pugx.org/itgalaxy/bin-wrapper/v/stable)](https://packagist.org/packages/itgalaxy/bin-wrapper)
[![Travis Build Status](https://img.shields.io/travis/itgalaxy/bin-wrapper/master.svg?label=build)](https://travis-ci.org/itgalaxy/bin-wrapper)
[![Build status](https://ci.appveyor.com/api/projects/status/immgvmhqmj3rv53t?svg=true)](https://ci.appveyor.com/project/evilebottnawi/bin-wrapper)

Binary wrapper that makes your programs seamlessly available as local dependencies

## Install

The utility can be installed with Composer:

```shell
$ composer require bin-wrapper
```

## Usage

```php
use BinWrapper\BinWrapper;

$url = 'https://github.com/itgalaxy/pngquant-bin/raw/master/bin-vendor';
$platform = strtolower(PHP_OS);
$binWrapper = new BinWrapper();
$binWrapper
    ->src($url . '/freebsd/x64/pngquant', 'darwin', 'x64')
    ->src($url . '/linux/x64/pngquant', 'linux', 'x64')
    ->src($url . '/linux/x86/pngquant', 'linux', 'x86')
    ->src($url . '/macos/pngquant', 'darwin')
    ->src($url . '/win/pngquant.exe', 'windowsnt')
    ->dest(__DIR__ . '/vendor-bin')
    ->use($platform === 'winnt' ? 'pngquant.exe' : 'pngquant')
    ->version('>=1.71');

$binWrapper->build(['--version']); // You can use `try {} catch {}` for catching exceptions
```

Get the path to your binary with `$binWrapper->path()`:

```php
echo $binWrapper->path();
```

## API

Coming soon

## Related

- [bin-wrapper](https://github.com/kevva/bin-wrapper) - Thanks you for inspiration.

## Contribution

Feel free to push your code if you agree with publishing under the MIT license.

## [Changelog](CHANGELOG.md)

## [License](LICENSE)

{'fraction_non_alphanumeric': 0.19246861924686193, 'fraction_numerical': 0.0100418410041841, 'mean_word_length': 4.585669781931464, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 27, 'https://': 18, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2157789', 'n_tokens_mistral': 1284, 'n_tokens_neox': 1239, 'n_words': 239}