2017 © Pedro Peláez
 

library bin-wrapper

PHP library providing functionality to verify that user-agents are who they claim to be.

image

itgalaxy/bin-wrapper

PHP library providing functionality to verify that user-agents are who they claim to be.

  • Wednesday, March 29, 2017
  • by evilebottnawi
  • Repository
  • 4 Watchers
  • 0 Stars
  • 154 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 12 Versions
  • 0 % Grown

The README.md

bin-wrapper

Latest Stable Version Travis Build Status Build status, (*1)

Binary wrapper that makes your programs seamlessly available as local dependencies, (*2)

Install

The utility can be installed with Composer:, (*3)

$ composer require bin-wrapper

Usage

<?php
use Itgalaxy\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')
    ->using(substr($platform, 0, 3) === 'win' ? 'pngquant.exe' : 'pngquant')
    ->version('>=1.71');

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

Get the path to your binary with $binWrapper->path():, (*4)

<?php
echo $binWrapper->path();

API

Coming soon, (*5)

Contribution

Feel free to push your code if you agree with publishing under the MIT license., (*6)

Changelog

License

The Versions

29/03 2017

dev-master

9999999-dev

PHP library providing functionality to verify that user-agents are who they claim to be.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Itgalaxy

wrapper check bin local bin-wrapper

29/03 2017

1.0.4

1.0.4.0

PHP library providing functionality to verify that user-agents are who they claim to be.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Itgalaxy

wrapper check bin local bin-wrapper

28/03 2017

1.0.3

1.0.3.0

PHP library providing functionality to verify that user-agents are who they claim to be.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Itgalaxy

wrapper check bin local bin-wrapper

28/03 2017

1.0.2

1.0.2.0

PHP library providing functionality to verify that user-agents are who they claim to be.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Itgalaxy

wrapper check bin local bin-wrapper

28/03 2017

1.0.1

1.0.1.0

PHP library providing functionality to verify that user-agents are who they claim to be.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Itgalaxy

wrapper check bin local bin-wrapper

28/03 2017

1.0.0

1.0.0.0

PHP library providing functionality to verify that user-agents are who they claim to be.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Itgalaxy

wrapper check bin local bin-wrapper

05/12 2016
05/12 2016

0.0.5

0.0.5.0

PHP library providing functionality to verify that user-agents are who they claim to be.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Itgalaxy

wrapper check bin local bin-wrapper

03/12 2016

0.0.4

0.0.4.0

PHP library providing functionality to verify that user-agents are who they claim to be.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Itgalaxy

wrapper check bin local bin-wrapper

02/12 2016

0.0.3

0.0.3.0

PHP library providing functionality to verify that user-agents are who they claim to be.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Itgalaxy

wrapper check bin local bin-wrapper

02/12 2016

0.0.2

0.0.2.0

PHP library providing functionality to verify that user-agents are who they claim to be.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Itgalaxy

wrapper check bin local bin-wrapper

01/12 2016

0.0.1

0.0.1.0

PHP library providing functionality to verify that user-agents are who they claim to be.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Itgalaxy

wrapper check bin local bin-wrapper