Download the PHP package m7md-5ttab/laravel-shared without Composer

On this page you can find all versions of the php package m7md-5ttab/laravel-shared. 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-shared

Laravel Shared

Deploy Laravel apps to shared hosting with one Artisan command.

m7md-5ttab/laravel-shared is a deployment toolkit for Laravel 11+ applications running on traditional shared hosting such as cPanel, Hostinger, Namecheap, GoDaddy, DirectAdmin, and similar environments.

It helps you publish a Laravel app beside public_html without manually copying files, patching index.php, or guessing whether symlinks will work on the server.

Why Use It

Requirements

Installation

Optional: publish the configuration file.

Laravel package discovery will register:

Quick Start

Preview the deployment first:

Run the real deployment:

Rollback the latest recorded deployment if needed:

If the package can already detect your public_html directory, you can omit --target.

Typical Shared Hosting Layout

This package is designed for the common setup where your Laravel app lives outside the web root and only public assets are exposed:

During deployment, the package syncs your Laravel public/ directory into the target web root and patches public_html/index.php so it loads the app from the correct location.

Commands

php artisan hosting:check

Runs a readiness report without changing files.

It checks things like:

Use this before your first deployment if you want a quick health check.

php artisan hosting:run

This is the main workflow. It:

  1. runs readiness checks
  2. applies conservative automatic fixes inside your project
  3. reruns readiness checks
  4. shows a deployment summary
  5. asks once before the real deployment
  6. deploys using symlink or copy mode

Common options:

Examples:

Useful notes:

What hosting:run can fix automatically:

What stays manual:

php artisan hosting:rollback

Use rollback in one of these ways:

Examples:

Notes:

Deployment Modes

Symlink Mode

Recommended when your host allows symlinks.

Copy Mode

Recommended when symlinks are disabled or unreliable.

If you do not choose a mode, the package prefers symlink mode first and falls back to copy mode automatically when needed. If you explicitly pass --symlink, it will not silently switch to copy mode.

Deployment Records

During real deployments, the package stores:

These records are used for cleanup-based rollbacks and deployment history.

Configuration

Publish the config if you want to customize behavior:

Useful settings in config/hosting-shared.php include:

By default, .well-known is preserved in the target directory.

Troubleshooting

public_html was not detected

Pass the target explicitly:

Symlink deployment failed

Retry in copy mode:

Some shared hosts disable symlink creation entirely.

Git is unavailable

Basic deployment can still work, but Git snapshot commits and tag workflows will be skipped or blocked depending on the command options you use.

If you want deployment tags, install Git and rerun with --tag or --tag-name.

Recommendations


All versions of laravel-shared with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^11.0 || ^12.0 || ^13.0
illuminate/console Version ^11.0 || ^12.0 || ^13.0
illuminate/filesystem Version ^11.0 || ^12.0 || ^13.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 m7md-5ttab/laravel-shared contains the following files

Loading the files please wait ...