Download the PHP package michaeljennings/laravel-make without Composer

On this page you can find all versions of the php package michaeljennings/laravel-make. 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 laravel-make

Laravel Make

This package allows you to use the laravel make commands outside of a laravel application, this can be very useful for package development.

Installing Globally

To install the package globally run composer global require michaeljennings/laravel-make.

When composer has finished installing you should be able to laravel-make in your command line and it should list all of the available commands.

If you are on windows and it says laravel-make is not a function then make sure your global composer .bin directory is in the $PATH environment variable.

Installing Per Project

To install on a per project basis run composer require michaeljennings/laravel-make.

Or add the package to you composer.json file.

Then run composer update to install the package.

Once installed run vendor/bin/laravel-make and you should see a list of all of the available commands.

Configuration

By default the laravel commands try to place the new files within the app directory and in the App namespace, however this is very rarely how a package is setup.

To get around this you can create a .laravel-make file in the root of your package and define your package specific configuration in it. This file works like a .env file, a sample file is below, and then there is a description of each configuration option underneath.

Base Path

The base path that will be prepended to all files, excluding migrations and seeders.

Defaults to /app

Base Namespace

This is the root namespace that will be prepended to each class.

Defaults to 'App\'

User Model

This option is a little strange. Some of the stubs need to the path to the user model for the application, by default laravel tries to find this from the auth config file. As we don't have the auth config file available to us we have to specify it in the .laravel-make file.

Defaults to 'App\User'

Console Command Path

The path the command files should be stored in. By default this will prepend the base path.

Defaults to '{BASE_PATH}/Console/Commands'

Console Command Namespace

The namespace that will be prepended to all console commands.

Defaults to '{BASE_NAMESPACE}\Console\Commands'

Controller Path

The path the controller files should be stored in. By default this will prepend the base path.

Defaults to '{BASE_PATH}/Http/Controllers'

Controller Namespace

The namespace that will be prepended to all controllers.

Defaults to '{BASE_NAMESPACE}\Http\Controllers'

Event Path

The path the event files should be stored in. By default this will prepend the base path.

Defaults to '{BASE_PATH}/Events'

Event Namespace

The namespace that will be prepended to all events.

Defaults to '{BASE_NAMESPACE}\Events'

Listener Path

The path the listener files should be stored in. By default this will prepend the base path.

Defaults to '{BASE_PATH}/Listeners'

Listener Namespace

The namespace that will be prepended to all listeners.

Defaults to '{BASE_NAMESPACE}\Listeners'

Mail Path

The path the mail files should be stored in. By default this will prepend the base path.

Defaults to '{BASE_PATH}/Mail'

Mail Namespace

The namespace that will be prepended to all mail classes.

Defaults to '{BASE_NAMESPACE}\Mail'

Middleware Path

The path the middleware files should be stored in. By default this will prepend the base path.

Defaults to '{BASE_PATH}/Middleware'

Middleware Namespace

The namespace that will be prepended to all middleware classes.

Defaults to '{BASE_NAMESPACE}\Middleware'

Migration Path

The path the migration files should be stored in. By default this will prepend the base path.

Defaults to 'database/migrations'

Model Path

The path the model files should be stored in. By default this will prepend the base path.

Defaults to '{BASE_PATH}'

Model Namespace

The namespace that will be prepended to all models.

Defaults to '{BASE_NAMESPACE}\Models'

Notification Path

The path the notification files should be stored in. By default this will prepend the base path.

Defaults to '{BASE_PATH}/Notifications'

Notification Namespace

The namespace that will be prepended to all notifications.

Defaults to '{BASE_NAMESPACE}\Notifications'

Policy Path

The path the policy files should be stored in. By default this will prepend the base path.

Defaults to '{BASE_PATH}/Policies'

Policy Namespace

The namespace that will be prepended to all policies.

Defaults to '{BASE_NAMESPACE}\Policies'

Provider Path

The path the provider files should be stored in. By default this will prepend the base path.

Defaults to '{BASE_PATH}/Providers'

Provider Namespace

The namespace that will be prepended to all providers.

Defaults to '{BASE_NAMESPACE}\Providers'

Request Path

The path the request files should be stored in. By default this will prepend the base path.

Defaults to '{BASE_PATH}/Requests'

Request Namespace

The namespace that will be prepended to all requests.

Defaults to '{BASE_NAMESPACE}\Requests'

Seeder Path

The path the seeder files should be stored in. By default this will prepend the base path.

Defaults to 'database/seeds'


All versions of laravel-make with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
laravel/framework Version >=9.0
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 michaeljennings/laravel-make contains the following files

Loading the files please wait ....