symfony/skeleton with version 5.4 not found [closed] - php

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed last month.
Improve this question
I'm triying to create a new symfony project for class work and when I try to run the command to create it:
composer create-project symfony/skeleton:"^5.4" 2023-truiter-symfony
Gives me the next error:
symfony error
My PHP version is 8.1.12 and my composer version is 2.5.1
I've been trying to create a new symfony project without specifying the version and it works, but I would like that when the project is created it has the version ^5.4

Finally I have found a solution to the problem, I have installed CLI Symfony following the instructions from:
https://symfony.com/download
Once installed the problem when creating the project with the "^5.4" version has been solved.

Related

Composer dependency not met for large package [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I am needing to install a package into my Laravel project. I am using the latest version of Laravel (8), It comes preinstalled with;
"guzzlehttp/guzzle": "^7.0.1"
When I go to install the new package, I get an error saying that it is not compatible with my project. When I check the composer.json file for the package, it give the following as a dependency;
"guzzlehttp/guzzle": "~6.0"
I need this package to continue with my project. What would be the best way to deal with this?
Laravel v8 requires Guzzle v7. It is not compatible with Guzzle v6. If any package you want to use does not yet support Guzzle v7, you cannot use that package in your Laravel project - unless you downgrade Laravel to v7.
Updating the package from Guzzle v6 to v7 might not be that easy, as the list of breaking changes is not that short. But the maintainer of the package you want to use is surely pretty thankful if you provide a pull request to his repository

Error: Your requirements could not be resolved to an installable set of packages [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I am trying to run composer install on my server,(which is a CentOS based machine) and getting this weird error,
Your requirements could not be resolved to an installable set of packages.
Though output of my phpinfo() in my project folder gives php version as 7.4, but running php -v command shows it as 7.1, Please let me know how to fix it.
Edit: composer -vvv about is showing following-
Running 1.10.15 with PHP 7.1.33 on Linux
Ok, I figured it out,
The problem was with php-cli as mentioned. Instead of updating to a newer version or removing old version I created an alias for the binary file of new version of PHP and provided full path to the composer, so my command now looks like this:
[alias(path to new version of PHP)] [alias(path to composer)] [composer command]..

JavaScript & CSS scaffolding in Laravel 8.x [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I just wanted to ask if anyone knows why the scaffolding section isn't available in Laravel 8.x.
Recently I've tried the php artisan ui react but it didn't work.
And when I've tried it with the 7.x it worked fine.
Is Laravel dropping the support for that in 8.x or is it an upcoming feature or it has been changed to another method, thank you in advance.
Link to the documentation page here
From laravel 6 to 7 upgrade notes: https://laravel.com/docs/7.x/upgrade
All authentication scaffolding has been moved to the laravel/ui repository. If you are using Laravel's authentication scaffolding, you should install the ^2.0 release of this package and the package should be installed in all environments. If you were previously including this package in the require-dev portion of your application's composer.json file, you should move it to the require section:
composer require laravel/ui "^2.0"
Did you run the command above before running php artisan ui?

Laravel 5.3 Entry module not found: Error: Can't resolve 'buble' [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I'm following the Laravel passport video tutorial on Laracasts and kept getting the below error, so I have taken a fresh install of Laravel using the Laravel install tool but I'm still getting the error:
laravel new test
cd test
gulp
Error: Entry module not found: Error: Can't resolve 'buble' in 'C:\xampp\htdocs\test' resolve 'buble' in 'C:\xampp\htdocs\test
This is a fresh install with no changes, am I missing something from the install process?
I'm pretty sure you need to do npm install before using gulp.
Bublé is a ES2015 compiler (light version of Babel).
They come with Laravel, but you must previously install them, via npm install.

how to work with non laravel packages? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
How to work with non laravel packages as i want to use https://packagist.org/packages/kerphi/phpfreechat this packages
You can use the simple composer functionality. Via commandline run:
composer require kerphi/phpfreechat
That's it the package classes should now be available within your application.
You can view the complete documentation on loading packagist dependancies on the composer website.
update
You won't be able to use this package as the package requires the slim framework. You can see this on the package github page: https://github.com/kerphi/phpfreechat and the index file called during javascript usage: https://github.com/stmolivier/phpfreechat/blob/master/server/index.php
If you are using windows then In cmd go to your project location and run this code
composer require kerphi/phpfreechat

Categories