Download the PHP package nerbiz/embark without Composer

On this page you can find all versions of the php package nerbiz/embark. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package 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), so go ahead and use it for anything.

Installation

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

Include this project with Composer:

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:

Publish some basic views:

Publish stubs, in case you'd like to customize them:

For convenience, the 'stubs_path' value in config/embark.php already points to where the stubs are published.

Commands

These are the Artisan commands included in this package:

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

Custom Blueprint

In a migration file, replace these use statements:

With these:

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

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

License

This project uses the Unlicense.


All versions of embark with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package nerbiz/embark contains the following files

Loading the files please wait ....