Install local package with the help of composer - composer-php

I want to install my local package using composer, I have tried solutions found from the web and didn't get desired results. Can anyone please give me steps for that?

Related

what should i do pls tell when i am installing laravel

[InvalidArgumentException]
Could not find package /laravel/laravel/var/www/html/my_laravel with stabil
ity stable.
No idea how you're getting that directory in your server, Apache2 defaults to /var/www/html, but either way just follow the Laravel Installation guide using Composer. You shouldn't need many commands to install it after setting up a LAMP stack on your server
LAMP Install: https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-ubuntu-18-04
Laravel Install: https://laravel.com/docs/5.6

Laravel install package without composer

I'm just wandering if I can ask this here. I'm trying to install a package called Laravel Page Speed from my site that has already been hosted. My question is how can i install this package / any kind of package without composer into my hosted site. Or if i can install this with composer, how can i do this ?
I use Filezilla for ftp.
I've tried using the cmd's ftp command but its not working. Anyone have manage to do this ? Any answers will be helpful. Thanks
I guess it is shared hosting. Please setup the project on local machine and then install the required package. After installing just replace the hosted site’s vendor directory with your local vendor directory through any ftp client and it should be installed there too.
you need to have ssh access to server and then just run this :
composer require PACKAGE_NAME

Composer - It is downloading packages but not installing

I am trying to install one of my on going work (github-repository) into my server. I successfully downloaded my work into my server using Git. This work is a laravel based work.
After I did basic composer configurations, I tried to execute the command
composer install -vvv
It seems that, it downloading and cacheing packages but not installing them. After downloading and cacheing, the process get KILLED. I cant trace what is the exact problem here ?
Is anyone face this issue before ? If anyone know why composer behave like this,then please let me know.

Install Laravel behind proxy

Im trying to install Laravel on a windows machine.
I followed this guide up to point 11.
http://www.wikihow.com/Install-Laravel-Framework-in-Windows
I also ran two commands already (which I got from https://stackoverflow.com/a/18852026/2240163)
set http_proxy=<your_http_proxy:proxy_port>
set https_proxy=<your_https_proxy:proxy_port>
But on running composer install i am met with a message
C:\wamp\www\LARAVEL>composer install
Loading composer repositories with package information
[Composer\Downloader\TransportException]
The "https://packagist.org/packages.json" file could not be downloaded: SSL
: The specified procedure could not be found.
failed to open stream: Cannot connect to HTTPS server through proxy
How can I get past the proxy to install Laravel 4.
.
.
Here in lay the solution
C:\wamp\www\LARAVEL>set http_proxy=http://mnel:******#192.168.20.4:8080
C:\wamp\www\LARAVEL>set https_proxy=https://mnel:******#192.168.20.4:8080
I then ran the install composer command again and presto!
https://stackoverflow.com/a/24958700/2240163
Thanks #mneute
Here in lay the solution
C:\wamp\www\LARAVEL>set http_proxy=http://mnel:******#192.168.20.4:8080
C:\wamp\www\LARAVEL>set https_proxy=https://mnel:******#192.168.20.4:8080
I then ran the install composer command again and presto!
https://stackoverflow.com/a/24958700/2240163
Thanks #mneute
I got this same issue when I ran composer -vvv install. I did it in windows7 computer behind a company firewall. I search and tried every possible answer but didn't work. Then I tried following and it did work
https://www.calazan.com/how-to-set-the-proxy-settings-in-windows-via-command-line/

Laravel Installation error

I have downloaded laravel from github. I also have composer installed. My problem is when i type in
composer install
I got the following error. I can't fix it.
Have a look at the free laracasts series, this will guide you through the install - without any hiccups!
www.laracasts.com

Resources