Laravel, how to manually install package without composer

composer package without composer
laravel install package from github
manual install without composer
how to install laravel without composer
install guzzle without composer
manually install composer
laravel package development
phpspreadsheet without composer

Wanted to install Laravel-Excel (Maatwebsite) package manually without composer, but I dont know how.

Why? Because I have a laravel project in a free hosting server setup by other guy, and I can only access using Filezilla to edit/download/upload the codes.

If only Filezilla allow a command prompt that could use "composer update", then it will be easier.

  1. Add the package to the vendor folder. You can upload it using filezilla
  2. Add a reference in \vendor\composer\autoload_namespaces.php
  3. Add a reference in \vendor\composer\autoload_psr4.php

Source laravel.io

Install this package without composer � Issue #1307 � Maatwebsite , Install Maatwebsite/Laravel-Excel using -> composer require "maatwebsite/excel :~2.1.0" in local; You need to upload -> vendor/autoload.php This is because the package is available in packagist.org, what if the package that you want to use is a non-Composer Laravel package? May be available on a git repo or a private repo or so. In this post, we will see how to install and use non-Composer Laravel Package and custom libraries inside your Laravel projects.

I got solution! I cant use composer on my company because of secure network. But i can download zip form github and install it manual. The below is my example for HTMLPurifier:

  1. download and extract library mews/purifier to vendor directory https://github.com/mewebstudio/Purifier
  2. add below line in vendor/composer/autoload_psr4.php

This sentence will load all of file from vendor/mews/purifier/src and autoload in namespace Mews\Purifier\

'Mews\\Purifier\\' => array($vendorDir . '/mews/purifier/src'),

Sometime you need add library into autoload_namespaces.php intead of, please read in https://getcomposer.org/doc/04-schema.md#autoload

You got Mews\Purifier\Facades\Purifier not found if public config before finish step 3

$ php artisan vendor:publish --provider="Mews\Purifier\PurifierServiceProvider"

  1. add below json in vendor/composer/installed.json

This for composer history, providers and aliases will be load in config/app/php for register new provider

{
    "name": "mews/purifier",
    "version": "v2.0.12",
    "type": "library",
    "extra": {
        "laravel": {
            "providers": [
                "Mews\\Purifier\\PurifierServiceProvider"
            ],
            "aliases": {
                "Purifier": "Mews\\Purifier\\Facades\\Purifier"
            }
        }
    },
    "autoload": {
        "psr-4": {
            "Mews\\Purifier\\": "src/"
        }
    }
},

Now you run this config, then vendor/mews/purifier/config will be move to config folder

$ php artisan vendor:publish --provider="Mews\Purifier\PurifierServiceProvider"

How To Install PHP Packages Without Composer, If you're working with a PHP framework like Laravel or CakePHP, you To manually install a package without Composer, you must find these� For instance, laravel new blog will create a directory named blog containing a fresh Laravel installation with all of Laravel's dependencies already installed: laravel new blog Via Composer Create-Project. Alternatively, you may also install Laravel by issuing the Composer create-project command in your terminal:

download the package locally and then upload the package folder (found under vendor) along with the updated composer.json

How manually add package without using composer require?, I can't require the GuzzleHttp on my server with using composer so I try to find a way to add the package to the server manually. I've try to add guzz Install this package without composer #1307. Did you also upload your composer autoload.php file? Without it, it won't work, as the files need to be autoloaded

Depending on how strict the server is, you could SSH into your Server. But doing it locally then uploading the required files is usually the way to go.

You might need to run composer autodump if you don't wipe the cache.

Installing a package manually. Class not found, I have a site on an hosting account without SSH access so I decided to install a package manually. First of all my Laravel version is: no way to ssh into your server, you cannot force composer to reload the class cache. Download Composer Latest: v1.10.9. To quickly install Composer in the current directory, run the following script in your terminal. To automate the installation, use the guide on installing Composer programmatically.

it's easy to do it by following this download the package and set the files in app folder

YourProject/app/Laravel-Excel/

and then add the path to composer.json in autoload

"autoload": {
    ...
    "classmap": [
        "database/seeds",
        "database/factories"
        "app/Laravel-Excel"
    ],
    ...
},

Run the composer dump-autoload

the solution refs to this question referance answer

Install and Use Non-Composer Laravel Packages, Load and Use Non-Composer Laravel Packages Like VCS, Git, This will include your file without problems, what if your library has a lot of� I'm looking for a universal PHP solution (perhaps a function) to let me install composer packages directly onto my server, without having to use Composer. I think the developers of Composer believe they are helping people, but actually there are thousands of beginner developers that are being locked out of learning web development by the

Manually install Laravel/Composer packages?, I mean install Composer packages without running Composer. I've got the packages as ZIP files and have extracted them into vendor/<vendor� Actually, the correct solution is: composer require vendor/package. Taken from the CLI documentation for Composer:. The require command adds new packages to the composer.json file from the current directory.

Laravel, how to manually install package without composer, BitChute aims to put creators first and provide them with a service that they can use to flourish and express their ideas freely. The laravel/ui package also generates several pre-built authentication controllers, which are located in the App\Http\Controllers\Auth namespace. The RegisterController handles new user registration, the LoginController handles authentication, the ForgotPasswordController handles e-mailing links for resetting passwords, and the

Can I install Laravel packages without using composer?, You have to rely on such a tool in a laravel app (laravel It's the Composer era , we don't want to manually import packages anymore or copy/paste them with� By default, Laravel uses NPM to install both of these frontend packages. The Bootstrap and Vue scaffolding provided by Laravel is located in the laravel/ui Composer package, which may be installed using Composer: composer require laravel/ui:^1.0 --dev

Comments
  • So do composer install on your local machine and upload everything including the vendor folder to your hosting.
  • problem is, im not allowed to do that
  • Allowed to do what? You can't run composer on the computer you're at right now?
  • The laravel project is everything inside the server and i dont have it locally. And i am not allowed download everything in the server and reupload the whole thing
  • no need to run php artisan vendor:publish in laravel?
  • I tried your method yesterday. Download the package, take the maatwebsite folder in vendor, edit config/app, edit composer.json, but it produce an error
  • Class 'Maatwebsite\Excel\ExcelServiceProvider' not found. I already put Maatwebsite\Excel\ExcelServiceProvider::class, at providers in config/app and 'Excel' => Maatwebsite\Excel\Facades\Excel::class, at aliases. And I already uploaded the vendor file
  • are all the packages currently installed working properly or they're all throwing the same error?
  • all the other package that currently installed is working perfectly, just this Laravel/Excel package are not
  • I think you need to run compose dump-autoload on your local machine and re-upload the entire vendor folder
  • The laravel project is everything inside the server and i dont have it locally. And i am not allowed download everything in the server and reupload the whole thing, how to do it manually?
  • @begineeeerrrr If you don't have it locally you could create a new laravel project and composer install the package you want. Find it in the vendor file and upload it to the site. Edit the required live config/app so that its links to its ServiceProvider and Facades and then reupload that. If you still get an error then a composer dumpautoload is required. You should, if you can, have the whole project locally and work using XAMPP or something similar using a vhost. Much better productivity.
  • Produces error Class 'Maatwebsite\Excel\ExcelServiceProvider' not found, done exactly what you told. Here what I did, I make a new laravel project file, install Laravel/Excel (Maatwebsite) package, edit config/app, composer publish. Okay so far locally done. Now I upload the vendor(maatwebsite), edit config/app, edit composer.json, upload excel.php into config\