PHPackages                             nerbiz/embark - 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. nerbiz/embark

AbandonedArchivedLibrary[Framework](/categories/framework)

nerbiz/embark
=============

A flying start for Laravel projects.

0.16.3(6y ago)053UnlicensePHPPHP ^7.1.3

Since Apr 20Pushed 6y ago1 watchersCompare

[ Source](https://github.com/nerbiz/embark)[ Packagist](https://packagist.org/packages/nerbiz/embark)[ RSS](/packages/nerbiz-embark/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (24)Used By (0)

Embark
======

[](#embark)

A flying start for Laravel projects.

There were some things that I did/used with new Laravel projects, so putting those things in a package speeds up that process. Maybe you'll find it useful as well. This package is in the public domain (using the [Unlicense](http://unlicense.org/)), so go ahead and use it for anything.

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

[](#installation)

The intended Laravel version is 5.6, I haven't tested it in previous versions.

Include this project with [Composer](https://getcomposer.org/):
`composer require nerbiz/embark 0.*`

The service provider will be autodiscovered, but for completeness, the service provider file is `Nerbiz\Embark\EmbarkServiceProvider`. There is no (need for a) Facade, but who knows what the future brings.

Publish the config file:
`php artisan vendor:publish --tag=embark-config`

Publish some basic views:
`php artisan vendor:publish --tag=embark-views`

Publish stubs, in case you'd like to customize them:
`php artisan vendor:publish --tag=embark-stubs`
For convenience, the 'stubs\_path' value in `config/embark.php` already points to where the stubs are published.

Commands
--------

[](#commands)

These are the Artisan commands included in this package:

- `embark:empty-class`: Creates an empty class with only a constructor. The namespace for it can be configured in `config/embark.php`.
- `embark:migration`: Works in the same way as (extends) `make:migration`, but uses custom stubs, which use the custom Blueprint of this package.
- `embark:model`: Works in the same way as (extends) `make:model`, but uses custom namespace and embark:migration instead of make:migration. The namespace for it can be configured in `config/embark.php`.
- `embark:models-namespace`: Create the App\\Models namespace and move User to it, and update files that use the User model. Namespace name can be defined in `config/embark.php`.
- `embark:restructure`: Adjusts the directory structure, creates a 'laravel' directory next to the public directory.
- `embark:webpack`: Intended to use with `embark:restructure`, this overwrites the webpack.mix.js file, using the new public directory path.

Explanation for `embark:restructure`:
I guess this is mostly useful for shared hosting, or other environments with limited control.

Usually, the public directory is called 'public\_html', not 'public' as in Laravel. There are usually also a number of files and directories next to the public directory, like things for stats, FTP, SSH, mailboxes etc. I don't prefer to mix those with Laravel files, so my idea was to move all those files to a separate 'laravel' directory. The end result is a 'laravel' and 'public\_html' directory, next to each other.

Paths have also been taken care of in this command, so you can just start building.

Usage
-----

[](#usage)

### Custom Blueprint

[](#custom-blueprint)

In a migration file, replace these use statements:

```
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
```

With these:

```
use Nerbiz\Embark\Facades\Schema;
use Nerbiz\Embark\Schema\Blueprint;
```

Then you can use `$table` as usual, but the `foreignKey()` method has been added. `foreignKey()` works the same as `foreign()`, but it adds `->references(...)->on(...)->onUpdate(...)->onDelete(...)` implicitly. For example: category\_id implicitly references id on categories. The default onUpdate and onDelete values are set in `config/embark.php`.

Since this method returns a Fluent instance, you can use it as you would otherwise. Therefore you could for instance overwrite an implicit foreign table name: `$table->foreignKey('category_id')->on('product_categories');`

My intention is to expand the custom Blueprint with more useful methods.

Contributing
------------

[](#contributing)

Please do a pull request, if you have some improvements in mind.

License
-------

[](#license)

This project uses the [Unlicense](http://unlicense.org/).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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 ~24 days

Recently: every ~48 days

Total

22

Last Release

2428d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b3a41ec2ee8979a70437a20dd14b3a96eae9816f2b84cd3cb72326bcdf7bf1f8?d=identicon)[nerbiz](/maintainers/nerbiz)

---

Top Contributors

[![nerbiz](https://avatars.githubusercontent.com/u/6173907?v=4)](https://github.com/nerbiz "nerbiz (123 commits)")

### Embed Badge

![Health badge](/badges/nerbiz-embark/health.svg)

```
[![Health](https://phpackages.com/badges/nerbiz-embark/health.svg)](https://phpackages.com/packages/nerbiz-embark)
```

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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