Download the PHP package jrl05k/laravel-under-construction without Composer

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

laravel-under-construction

Laravel middleware to display under construction message with an option to login

Description

It's simple. The middleware redirects to the under construction page. This may useful in instances when you want push a release that is still "under construction" to a live server. Then you can use the middleware to display an under construction page to visitors.

If you want to allow certain visitors to be able to see the site you can enable the login option in your .env file.

To make development easier, you can also disable the under construction redirect when the request ip is the localhost. Similarly, when on live server you can disable the under construction message when the request is from certain ip addresses.

You can enable/disable the under construction message for everyone at any point by changing the .env value.

However, when you are ready to go live and no longer need the under construction message, you should remove the middleware from the kernel.

Installation

composer require jrl05k/laravel-under-construction

Provider

Add UnderConstruction\UnderConstructionProvider::class to config/app.php providers. (only for <5.5.x)

Middleware

It's a simple middleware that will redirect to an "under construction" page.

But, it can be enabled to have a login to bypass the under construction page.

Add \UnderConstruction\RedirectIfUnderConstructionMiddleware::class to Kernel.php middlewareGroups web.

.env

You will need to add the following to your .env and set them accordingly

.env Settings

Apply to specific routes only

If you want to apply the under construction redirect to certain routes, then instead of putting the middleware in the $middlewareGroups 'web' group, you should put it in the $routeMiddleware array. Then put a route group around the routes you want protected.

Example:

In Kernel.php

In routes/web.php

Custom views

If you want to use a custom under construction page, you can over-ride the views by placing view file in path:

resources/views/vendor/underconstruction/under_construction.blade.php

Likewise, to over-ride the log in create your view in path:

resources/views/vendor/underconstruction/under_construction_login.blade.php

Disable

To temporarily turn off the under construction message, you can set the .env UNDER_CONSTRUCTION variable to false.

But to permanently disable it when it is no longer needed for a live production site, you should remove the \UnderConstruction\RedirectIfUnderConstructionMiddleware::class middleware from the Kernel.php. Keeping it in middleware and just disabling it by the .env setting will have a performance cost; so it is best to remove it completely from the Kernel.php middleware.


All versions of laravel-under-construction with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.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 jrl05k/laravel-under-construction contains the following files

Loading the files please wait ....