PHPackages                             januar/laravel-outside - 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. [Framework](/categories/framework)
4. /
5. januar/laravel-outside

ActiveLibrary[Framework](/categories/framework)

januar/laravel-outside
======================

Using laravel command (migration and seeder command available now) outside laravel framework

v1.0.0(6y ago)359MITPHPCI failing

Since Sep 10Pushed 1y ago1 watchersCompare

[ Source](https://github.com/januar/laravel-outside)[ Packagist](https://packagist.org/packages/januar/laravel-outside)[ Docs](https://github.com/januar/laravel-outside)[ RSS](/packages/januar-laravel-outside/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (4)Dependencies (9)Versions (6)Used By (0)

laravel-outside
===============

[](#laravel-outside)

Package to use laravel command from out of laravel framework. This package use fully illuminate/database package from laravel.

Requirement
-----------

[](#requirement)

- PHP &gt;= 7.1.3

Installation
------------

[](#installation)

### Install Composer

[](#install-composer)

laravel-outside utilizes [Composer](http://getcomposer.org/) to manage its dependencies. First, download a copy of the `composer.phar`. Once you have the PHAR archive, you can either keep it in your local project directory or move to `usr/local/bin` to use it globally on your system. On Windows, you can use the Composer [Windows installer](https://getcomposer.org/Composer-Setup.exe).

### Install laravel-outside

[](#install-laravel-outside)

The best way to install laravel-outside is quickly and easily with Composer. To install the most recent version, run the following command.

```
composer require januar/laravel-outside
```

After that, commnad will be place in composer vendor folder. So, to run the command file will be like this

```
php vendor/bin/js
```

### Configuration

[](#configuration)

This package using .env file configuration. So, you must create .env file in root of project. After that, write following config to the .env file base on your configuration.

```
DB_DEFAULT=mysql
DB_HOST=localhost
DB_DATABASE=laravel-outside
DB_USERNAME=
DB_PASSWORD=
DB_CHARSET=utf8
DB_COLLATION=utf8_unicode_ci
DB_PREFIX=''
DB_STRICT=false
DB_PATH=database
```

DB\_PATH is configuration to set where your seeder and migration file will be place.

### Update composer.json

[](#update-composerjson)

To using seeder functionality, you need to setup composer classmap in composer.json file. Autoload classmap refer to folder that seeder file is placed. You can follow this example:

```
"autoload":{
     "classmap":[
        "database/seeds"
     ]
}

```

After that, run composer dump-autoload

### Finally, Elequent and Make Model Command Can Used Now

[](#finally-elequent-and-make-model-command-can-used-now)

Laravel make:model command can used now. Available options is -m (migration) and -p (pivot). The documentation of this command, you can read from [Laravel Elequent documentation](https://laravel.com/docs/5.8/eloquent). We sugest to used psr-4 autoload, so your model will placed in autoload path. Example :

```
"autoload":{
    "psr-4": {
        "Your\\Application\\Package\\": "src/"
    },
    "classmap":[
        "database/seeds"
    ]
}

```

So, if you run create model command like this "php vendor/bin/js make:model Model/Example -m", model will placed in your\_application\_path/src/Model and migration file will placed in your\_application\_path/\[DB\_PATH\].

##### Using Eloquent

[](#using-eloquent)

To use Eloquent in your application, just init laravel application with:

```
require 'vendor/autoload.php';

$kernel = new \LaravelOutside\Kernel(realpath(__DIR__));
$kernel->init();

```

You need pass base path as param to \\LaravelOutside\\Kernel. Base path is your root application path.

### Credits

[](#credits)

All the credits for the laravel-outside goes to the Laravel Framework developers. We are only putting the pieces together here

### License

[](#license)

The laravel-outside is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 95.5% 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 ~103 days

Total

4

Last Release

2491d ago

Major Versions

v0.9.1 → v1.0.02019-07-16

### Community

Maintainers

![](https://www.gravatar.com/avatar/392037028d1cbf81eccd84e514340743519501b5fe2957b11863c33a0ca68b6b?d=identicon)[januar](/maintainers/januar)

---

Top Contributors

[![januarsirait](https://avatars.githubusercontent.com/u/2704707?v=4)](https://github.com/januarsirait "januarsirait (21 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

frameworklaravelmigration

### Embed Badge

![Health badge](/badges/januar-laravel-outside/health.svg)

```
[![Health](https://phpackages.com/badges/januar-laravel-outside/health.svg)](https://phpackages.com/packages/januar-laravel-outside)
```

###  Alternatives

[laravel-zero/framework

The Laravel Zero Framework.

3371.4M369](/packages/laravel-zero-framework)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[aedart/athenaeum

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

255.2k](/packages/aedart-athenaeum)[laravel/lumen-framework

The Laravel Lumen Framework.

1.5k26.2M709](/packages/laravel-lumen-framework)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)

PHPackages © 2026

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