PHPackages                             aedart/license-file-manager - 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. aedart/license-file-manager

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

aedart/license-file-manager
===========================

A simple LICENSE-file manager for you composer packages. Allows you to store / organise your various licenses into a single package, fetch it and update your current project’s license file with the desired one. At its core, this package is nothing more than a ‘glorified’ wrapper for PHP’s copy function, but it makes managing license files a bit easier, when you are developing multiple packages.

2.0.0(8y ago)163520BSD-3-ClausePHPPHP &gt;=7.1.0

Since Apr 3Pushed 7y ago1 watchersCompare

[ Source](https://github.com/aedart/license-file-manager)[ Packagist](https://packagist.org/packages/aedart/license-file-manager)[ Docs](https://github.com/aedart/license-file-manager)[ RSS](/packages/aedart-license-file-manager/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (13)Used By (20)

[![Latest Stable Version](https://camo.githubusercontent.com/dd8b56452123e891b587ab6d29377c52c0bed8bb051b1750e5266ea9bcc2b8ed/68747470733a2f2f706f7365722e707567782e6f72672f6165646172742f6c6963656e73652d66696c652d6d616e616765722f762f737461626c65)](https://packagist.org/packages/aedart/license-file-manager)[![Total Downloads](https://camo.githubusercontent.com/29722095a9f0b31e8a2d96e7995c5420bd6b5dd0e56741082c5b6ce310190d82/68747470733a2f2f706f7365722e707567782e6f72672f6165646172742f6c6963656e73652d66696c652d6d616e616765722f646f776e6c6f616473)](https://packagist.org/packages/aedart/license-file-manager)[![Latest Unstable Version](https://camo.githubusercontent.com/bdcc4fa5ea809f31ca7a89d8d5dddb967f3dc057930cf8f136198d18bf90ed70/68747470733a2f2f706f7365722e707567782e6f72672f6165646172742f6c6963656e73652d66696c652d6d616e616765722f762f756e737461626c65)](https://packagist.org/packages/aedart/license-file-manager)[![License](https://camo.githubusercontent.com/82aa214737c6a13e387b0cdbb7cd9c74bfdf9117b107adacb1db5b0d512103de/68747470733a2f2f706f7365722e707567782e6f72672f6165646172742f6c6963656e73652d66696c652d6d616e616765722f6c6963656e7365)](https://packagist.org/packages/aedart/license-file-manager)

Abandoned - License File Manager
================================

[](#abandoned---license-file-manager)

A simple LICENSE-file manager for you composer packages. Allows you to store / organise your various licenses into a single package, fetch it and update your current project’s license file with the desired one. At its core, this package is nothing more than a "glorified" wrapper for PHP's copy function, but it makes managing license files a bit easier, when you are developing multiple packages.

Contents
========

[](#contents)

- [When to use this](#when-to-use-this)
- [How to install](#how-to-install)
- [Quick start](#quick-start)
- [License](#license)

When to use this
----------------

[](#when-to-use-this)

How many composer-based packages are you working on? Do any of them contain a small file, named LICENSE? How do you manage that file, across all of your packages?

If you wish to maintain your license files from a single repository (or package) and just fetch the latest released version-file, then perhaps this small package might be able to help you.

How to install
--------------

[](#how-to-install)

```
composer require aedart/license-file-manager 1.*
```

This package uses [composer](https://getcomposer.org/). If you do not know what that is or how it works, I recommend that you read a little about, before attempting to use this package.

Quick start
-----------

[](#quick-start)

### Prerequisite

[](#prerequisite)

You should know how to work with [git-scm](http://git-scm.com/)

You should have some knowledge of how to create, publish and work with [composer](https://getcomposer.org/doc/04-schema.md) based projects

### Step 1: Create a repository (with a composer file)

[](#step-1-create-a-repository-with-a-composer-file)

Create a new repository that must contain your various license files.

Remember to also create a composer file for that package, with a custom name, e.g. `Acme/License`

If you need inspiration for how you could organise your files, please review the folder structure of [Aedart/License](https://github.com/aedart/license)

### Step 2: Create your license file

[](#step-2-create-your-license-file)

In your new repository, create a license file.

**Tip**: If you know that you are going to work with multiple types of licenses, then perhaps you should name each of your license-files according to their type, e.g. `Apache-2-license`

### Step 3: Publish your license repository / package

[](#step-3-publish-your-license-repository--package)

You can publish repository, once your license-file(s) are ready to be used in one of your projects.

However, please note that composer does also allow loading directly from repositories, if you do not wish to publish it on [Packagist](https://packagist.org). For additional information, review the [Repositories](https://getcomposer.org/doc/04-schema.md#repositories) section on composer’s documentation.

### Step 4: Require your license package and License Manager dependencies

[](#step-4-require-your-license-package-and-license-manager-dependencies)

In you require or require-dev, state your license package dependency, as well as this manager’s dependency;

```
{
  "require-dev": {
    "acme/license": "1.*",
    "aedart/license-file-manager": "1.*"
  }
}
```

Run composer update…

**Tip**: Unless there is a good reason why your entire license package should end up in the vendor folder, for those that are using it, then you should just require it for development – specify your dependency in the ‘require-dev’ section of your composer file.

### Step 5: Copy the desired license file

[](#step-5-copy-the-desired-license-file)

Invoke the following command, and your license file will be copied from your package into the root of your current project;

```
php vendor/bin/license-manager license:copy vendor/acme/license/Apache-2-license
```

A `LICENSE` file should be added into the root of your project.

**NOTE**: If there already exists a file named LICENSE in your project root, it will only be overwritten if its SHA1 checksum is not the same as the license file from the vendor folder.

#### Alternative: composer post-update-cmd script

[](#alternative-composer-post-update-cmd-script)

If you wish to let composer do the work for you, each time that you work on your project, then you can specify a post update script, in your composer file;

```
{
  "scripts": {
    "post-update-cmd": "vendor/bin/license-manager license:copy vendor/acme/license/Apache-2-license"
  }
}
```

Please note, this script will only be triggered when you are working on your package; thus, when it is being declared inside your root level composer file. Read more about composer’s [scripts](https://getcomposer.org/doc/articles/scripts.md), in order to get a better understanding of how this works.

Onward
------

[](#onward)

This package offers you a way to organise your various license files into a single repository and fetch the one that you need. However, on the down side, your license file is only updated when you are working with your package. Nevertheless, it might still be a better way of managing license files, rather than manually having to copy, paste and maintain them across multiple packages.

License
-------

[](#license)

[BSD-3-Clause](http://spdx.org/licenses/BSD-3-Clause), Read the LICENSE file included in this package

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity65

Established project with proven stability

 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

Every ~96 days

Recently: every ~166 days

Total

12

Last Release

2999d ago

Major Versions

1.8.0 → 2.0.02018-03-03

PHP version history (3 changes)1.0.0PHP &gt;=5.4.0

1.2.0PHP &gt;=5.5.9

2.0.0PHP &gt;=7.1.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1523223?v=4)[Alin Eugen Deac](/maintainers/aedart)[@aedart](https://github.com/aedart)

---

Top Contributors

[![aedart](https://avatars.githubusercontent.com/u/1523223?v=4)](https://github.com/aedart "aedart (65 commits)")

---

Tags

licensemanager

### Embed Badge

![Health badge](/badges/aedart-license-file-manager/health.svg)

```
[![Health](https://phpackages.com/badges/aedart-license-file-manager/health.svg)](https://phpackages.com/packages/aedart-license-file-manager)
```

###  Alternatives

[comcast/php-legal-licenses

A utility to generate a Licenses file containing the full license text for every dependency in your project for legal purposes.

821.1M9](/packages/comcast-php-legal-licenses)[malukenho/docheader

A small library to check header docs

68380.8k136](/packages/malukenho-docheader)[php-soap/wsdl

Deals with WSDLs

173.5M12](/packages/php-soap-wsdl)[oveleon/contao-component-style-manager

Style and CSS-Class Manager for Contao Open Source CMS

2535.8k6](/packages/oveleon-contao-component-style-manager)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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