If you really wanted to, you could do all the work that Composer does manually, but you definitely should not. Installing Composer is easy, it's just a matter of getting the composer.phar
file and running commands on it.
You do not need to run Composer on your server as well as locally, once you run composer install
or composer update
your project will have all its dependencies available and you can just upload it straight to your server.
This is not a Laravel package, so you don't have Service Provider nor Alias to setup, but this is a PHP package and since you use Composer to install it, it is already autoloaded, so you can just:
Add the package to your composer.json:
{
"require": {
"ghunti/highcharts-php": "~2.0"
}
}
Run
composer dumpautoload
And instantiate it:
$chart = new Ghunti\HighchartsPHP\Highchart();
Or use it in the top of your php:
use Ghunti\HighchartsPHP\Highchart;
And you should be able to:
$chart = new Highchart(Highchart::HIGHSTOCK);
Anywhere in your project and it should work.
You can create an alias in app/config/app.php
for it if you prefer to use it this way:
'Highchart' => 'Ghunti\HighchartsPHP\Highchart'
But you will still have to instantiate it
$chart = new Highchart();
You won't able to use it as in Laravel
Highchart::doWhatever();
Unless you create a ServiceProvider yourself, of course.
Best Answer
Composer 1.x and 2.x
Running the following command will remove the package from vendor (or wherever you install packages), composer.json and composer.lock. Change vendor/package appropriately.
Obviously you'll need to remove references to that package within your app.
I'm currently running the following version of Composer:
Documentation
https://getcomposer.org/doc/03-cli.md#remove
Updates