PHPackages                             wyrihaximus/composer-update-bin-autoload-path - 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. wyrihaximus/composer-update-bin-autoload-path

ActiveComposer-plugin[Utility &amp; Helpers](/categories/utility)

wyrihaximus/composer-update-bin-autoload-path
=============================================

🏰 Composer plugin that fills a bin file with the absolute composer autoload path

1.1.1(5y ago)0124.2k↓37.2%[1 issues](https://github.com/WyriHaximus/php-composer-update-bin-autoload-path/issues)[14 PRs](https://github.com/WyriHaximus/php-composer-update-bin-autoload-path/pulls)1MITPHPPHP ^8 || ^7.4CI passing

Since Nov 4Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/WyriHaximus/php-composer-update-bin-autoload-path)[ Packagist](https://packagist.org/packages/wyrihaximus/composer-update-bin-autoload-path)[ GitHub Sponsors](https://github.com/WyriHaximus)[ RSS](/packages/wyrihaximus-composer-update-bin-autoload-path/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (22)Used By (1)

composer update bin autoload path
=================================

[](#composer-update-bin-autoload-path)

Composer plugin that updates the autoload path of bin files so you don't have to guess the location, you already know it

[![Continuous Integration](https://github.com/wyrihaximus/php-composer-update-bin-autoload-path/workflows/Continuous%20Integration/badge.svg)](https://github.com/wyrihaximus/php-composer-update-bin-autoload-path/workflows/Continuous%20Integration/badge.svg)[![Latest Stable Version](https://camo.githubusercontent.com/db3d8c777f0aaae0da61756b395837508baf7536d1a7df4d41bbea702cd6d660/68747470733a2f2f706f7365722e707567782e6f72672f77797269686178696d75732f636f6d706f7365722d7570646174652d62696e2d6175746f6c6f61642d706174682f762f737461626c652e706e67)](https://packagist.org/packages/wyrihaximus/composer-update-bin-autoload-path)[![Total Downloads](https://camo.githubusercontent.com/a0f7a56db873715a656d354cdc2e2b68b400cc8ed4714e042f611ddc5310714a/68747470733a2f2f706f7365722e707567782e6f72672f77797269686178696d75732f636f6d706f7365722d7570646174652d62696e2d6175746f6c6f61642d706174682f646f776e6c6f6164732e706e67)](https://packagist.org/packages/wyrihaximus/composer-update-bin-autoload-path)[![Code Coverage](https://camo.githubusercontent.com/8592ad1aa696de8d458b58373ccdd99bbe6b06b8dd77c0e100f357582800b672/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f77797269686178696d75732f7068702d636f6d706f7365722d7570646174652d62696e2d6175746f6c6f61642d706174682f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/wyrihaximus/php-composer-update-bin-autoload-path/?branch=master)[![Type Coverage](https://camo.githubusercontent.com/be74d06ec18ceda5b1f3425153e5a5b7598d55b41b6573a57b742322da19bb43/68747470733a2f2f73686570686572642e6465762f6769746875622f77797269686178696d75732f7068702d636f6d706f7365722d7570646174652d62696e2d6175746f6c6f61642d706174682f636f7665726167652e737667)](https://shepherd.dev/github/wyrihaximus/php-composer-update-bin-autoload-path)[![License](https://camo.githubusercontent.com/c3bea81301c49aec7c3d60773b5c996acad0ccdc909a8c643ecba06c2c7f88bb/68747470733a2f2f706f7365722e707567782e6f72672f77797269686178696d75732f636f6d706f7365722d7570646174652d62696e2d6175746f6c6f61642d706174682f6c6963656e73652e706e67)](https://packagist.org/packages/wyrihaximus/composer-update-bin-autoload-path)

Install
-------

[](#install)

To install via [Composer](http://getcomposer.org/), use the command below, it will automatically detect the latest version and bind it with `~`.

```
composer require wyrihaximus/composer-update-bin-autoload-path

```

Usage
-----

[](#usage)

Define your tools bin like you normally would in `composer.json`:

```
{
    "bin": [
        "bin/app-name"
    ]
}
```

This plugin expects `bin/app-name.source` to exist and will create `bin/app-name` based on that. The following example `bin/app-name.source`:

```
#!/usr/bin/php
