Can you please help me, I am facing a trouble installing Laravel on my Ubuntu 18.04. When I run the commend composer create-project --prefer-dist laravel/laravel my_app, I get this error:
You need to install php-xml extension for dom. If you are using a Debian based system, you can install via the command below.
apt install php-xml
Related
I want to install Laravel 9.4.1 in my system but it is installing 9.3.0 automatically when I write this command:
composer create-project laravel/laravel newproject
I have am using PHP 8.1.6.
You must use the following command:
composer create-project --prefer-dist laravel/laravel:^9.3.8 <your_name_project>
the latest version is 9.3.8
Laravel 9.4.1 version has not been released, so it's wise not to install.
composer create-project laravel/laravel newproject
This command automatically installs a supported project using the Laravel framework, and this command:
composer create-project laravel/laravel:^9.3.8 your-project-name
Installs the 9.3.8 Laravel LTS version.
I am sorry if this is a newbie question.
Basically,I want to install a laravel package(https://github.com/yovanoc/codetube/).
There is no documentation on how to install it.So i used this command:
composer create-project yavanoc/codetube --prefer-dist myproject
But get this error:
[InvalidArgumentException]
Could not find pacakage yavanoc/codetube with stability stable
I can't use git clone because after that,I will not know how to go on further to complete the installation.It is only composer create-project yavanoc/codetube --prefer-dist myproject command that I know can completely install a a laravel package and since that didn't work,I do not know what to do now.
Thanks.
You're not far off with using the create-project command. It would have worked if the package was on Packagist, the default Composer repository.
Since it's not on Packagist you need to do what the create-project command does yourself. Looking at the documenation it says: "This is the equivalent of doing a git clone/svn checkout followed by a composer install of the vendors." In your case you can do:
git clone https://github.com/yovanoc/codetube.git myproject
cd myproject
composer install
For Install OroCRM in windows i have followed -> https://stackoverflow.com/a/40929643/8416476 after successful the command git clone -b 1.9.0 https://github.com/orocrm/platform-application.git orocrm then i try to run composer install --prefer-dist --no-dev Here i am getting error.
Installing composer/composer (1.0.0-p1): Downloading (failed) Failed to download composer/composer from dist: The
"https://api.github.com/repos/orocrm/composer/zipball/833ce984264204e7d6576ab082660105c7d8f04c"
file could not be downloaded (HTTP/1.1 404 Not Found)
How can i solve the issue.
Note : OroCRM in Windows
Install composer globally using https://getcomposer.org/Composer-Setup.exe
Then just run composer install --prefer-dist --no-dev from within application folder. This error is very odd and why are you trying to download 1.9.0 version? It is copy paste error or you specifically need this one?
Try Linux platform with Xampp for better convenient. refer https://oroinc.com/orocrm/doc/current/system-requirements#system-requirements
I have installed composer on shared hosting.
It's successfully installed on my shared hosting.
I have followed this tutorial for installation.
Link :- https://www.globo.tech/learning-center/laravel-under-cpanel/
Screenshot after installation.
I have used below command and it's working fine for me.
php composer.phar
But when I tried to install laravel in my public_html directory using below command,
composer create-project --prefer-dist laravel/laravel borrowpet "5.2.*"
It's not working. It shows composer command not please find below screenshot for error.
Please let me know what I'm missing while installing composer.
Use the command php composer.phar create-project --prefer-dist laravel/laravel borrowpet "5.2.*"
and make sure you execute the command from the directory where compser.phar exists.
I've tried to install yii2
composer create-project --prefer-dist yiisoft/yii2-app-advanced advanced 2.0.0 -vvv
but everytime I run this command composer just hangs on different places and I can't install it. The same problem is with laravel. It hangs for few hours without doing anything.
The same thing happens with laravel
Is there solution for it?