PHPackages                             darunada/external\_artisan - 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. darunada/external\_artisan

ActiveLibrary

darunada/external\_artisan
==========================

External Artisan provides artisan tools for non-laravel projects

111PHPCI failing

Since Mar 1Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/Darunada/external_artisan)[ Packagist](https://packagist.org/packages/darunada/external_artisan)[ RSS](/packages/darunada-external-artisan/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

External Artisan
================

[](#external-artisan)

[Forked from dosjein/external\_artisan](https://github.com/dosjein/external_artisan) and made usable.

Artisan the task runner in Laravel. This library makes it easy to use artisan commands in your own projects.

Installation with Composer
--------------------------

[](#installation-with-composer)

```
curl -s http://getcomposer.org/installer | php
php composer.phar require darunada/external-artisan
```

```
{
  "require": {
    "darunada/external-arisan":"dev-master"
  }
}
```

Usage
-----

[](#usage)

\####Installation To use this library, copy the ./artisan file to your project root.

\####Usage

- `$ php artisan list` will display a list of available commands.
- `$ php artisan help [command]` will display help text for the command

The [Artisan Page](https://laravel.com/docs/5.3/artisan) for Laravel 5.3 may present you with some options of how to use this library.

\####Creating Commands By default I put my commands in ./commands. You can override the path to commands in the artisan file.

Any available commands need to be registered with Artisan. This is done in `Darunada\Console\ArtisanKernel` and will load a config.php file located in your commands folder.

To autoload all classes in the commands file, add the following to your composer.json

```
{
  "autoload": {
    "classmap": [
      "commands"
    ]
  }
}
```

#### Service Injection

[](#service-injection)

Service injection doesn't work. Instead, a Pimple Container is passed into the Command constructor with the things you might need.

I will add services to this list as I need them. Or, feel free to add your own. You can also instantiate them yourself inside your commands.

- `$container['filesystem']` is an `Illuminate\Filesystem\Filesystem`
- `$container['database']` is a `Medoo\Medoo` [Documentation](http://medoo.in/doc) *I don't really love it, though*

These services are provided in `\Darunada\Console\InitArtisan`

```
/** @var Medoo */
private $database;

public function __construct($container)
{
    parent::__construct();
    $this->database = $container['database'];
}

```

\##Todo

- Test??

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance46

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60% 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/80a30ed96208f34d31bdde0e9c93faf968305dcf0748776b4611804b8c309348?d=identicon)[darunada](/maintainers/darunada)

---

Top Contributors

[![shivergard](https://avatars.githubusercontent.com/u/1783151?v=4)](https://github.com/shivergard "shivergard (12 commits)")[![Darunada](https://avatars.githubusercontent.com/u/1255918?v=4)](https://github.com/Darunada "Darunada (8 commits)")

### Embed Badge

![Health badge](/badges/darunada-external-artisan/health.svg)

```
[![Health](https://phpackages.com/badges/darunada-external-artisan/health.svg)](https://phpackages.com/packages/darunada-external-artisan)
```

PHPackages © 2026

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