11,156 questions
-3
votes
0
answers
79
views
Why is my fresh Laravel project's vendor folder ~3.5GB? Excessive storage use [closed]
A brand new Laravel project, initialized with composer create-project, is taking up almost 4 GB of disk space. I've located the issue, and the vendor directory is surprisingly large, around 3.5GB.
Is ...
1
vote
1
answer
102
views
Local composer dev repo namespacing issue
I am using Composer version 2.2.25
Per https://getcomposer.org/doc/05-repositories.md#path, I have this structure:
├── path
│ └── to
│ └── composer_stuff
│ └── compiled
│ ...
-1
votes
2
answers
99
views
Composer: how to use local symlinks for packages in development but Git versions in production
I have a project with a composer.json where some libraries are pulled from our GitLab:
"require": {
"my/library": "1.0.0",
"my/library-second": "1....
-1
votes
1
answer
33
views
Getting composer packages from local svn repository sub folder
Suppose a local svn repository Vendor has a subfolder tt containing multiple packages: core, core-analytics and so on. Each trunk folder for each package contains a composer.json file - naturally. ...
-1
votes
1
answer
115
views
How do i properly cache docker layers in my Dockerfile for a Laravel application?
Im trying to prevent PHP Composer to install it's dependencies everytime I edit my src dir files like this in my Dockerfile.
# Change working directory.
WORKDIR /var/www
# Install composer.
RUN curl -...
0
votes
1
answer
80
views
Cleanly check whether all composer packages are still actually available
We have a number of projects that use a variety of composer packages. Recently we had an issue with one of our projects because a library is no longer available. The library - https://packagist.org/...
0
votes
0
answers
29
views
Installing github branch using composer [duplicate]
Is there a general / standard approach to installing a github branch when the "parent" is installed using composer?
To hopefully clarify: I would like to install this branch (PHP Dropbox SDK)...
-1
votes
2
answers
74
views
Composer version has upgraded versions of packages, site is break using PHP stan & PHP unit
I Ran
Composer update --ignore-platform-reqs
And now i have an error which is like That:
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0&...
0
votes
0
answers
22
views
composer FAILD INSTALLATION [duplicate]
The Composer installer script was not successful [exit code 1].
OpenSSL failed with a 'certificate verify failed' error. This indicates a problem with the Certificate Authority file(s) on your system, ...
-2
votes
3
answers
188
views
How to setup php project on web hosting [closed]
I developed a simple php project with some simple framework and now I want to host it on server, the server is shared server and I do not have SSH access, so I have uploaded all the files via cPanel. ...
0
votes
1
answer
163
views
Why do the official Typo3 8.7.16 installation steps for Composer (and DDEV) yield a fatal PHP error?
When following the official installation instructions for Typo3 8.7.16 via DDEV and Composer, the first two of the commands below succeed, but I encounter a fatal PHP error on the third one (ddev ...
-2
votes
1
answer
558
views
Composer is not install in Windows 11 and PHP 8.2.12 [duplicate]
I have new Laptop which has windows 11 installed. I have also install XAMPP which has php 8.2.12 version. Now i want to install composer in my system but it is not allowing me to install. It gives me ...
1
vote
1
answer
361
views
composer dev is starting my other Laravel project [closed]
When developing locally on a Windows 11 machine with PHP 8, Laravel 11 and Filament, I adjust my composer.json to have
"dev": [
"Composer\\Config::disableProcessTimeout",
&...
0
votes
1
answer
400
views
I got composer error with nova licence issue
On laravel 11 site I need manually edit content of nova-permission package and I edited my root composer.json :
"require": {
...
"vyuldashev/nova-permission": &...
1
vote
1
answer
106
views
How do I require either an extension or a package with Composer?
I have a tool that requires the PHP intl extension, but if that is not present on the system, it can also work with symfony/intl (drawback is that then it's only English). So currently I have the ...
0
votes
0
answers
51
views
Illuminate\Contracts\Container\BindingResolutionException Target class [is_admin] does not exist
I am new to laravel 11. and I am getting error "Target class does not exist" while I cloned project from git. Same project in another folder is working fine. Can anyone suggest what could be ...
-2
votes
1
answer
93
views
How to install specified version of Laravel 9 [closed]
I try to install to install Laravel project version 9.0.0 using the next command
composer create-project laravel/laravel="9.0.0" my_project
After installation is completed I check version
...
1
vote
0
answers
583
views
Trying to update or install composer packages gives me "Could not delete" error
I am trying to update/install my composer packages in my project and I get an error
"Could not delete C:\Users.../vendor/composer/bafbb53e\CarbonPHP-carbon-1e9d506\src\Carbon\Lang\nan_TW@latin....
0
votes
0
answers
110
views
Class Not Found Exception in custom Prestashop module
I have a Prestashop 1.7.8 module that uses Symfony commands to perform scheduled tasks.
In my crontab, I can trigger $ php bin/console algoliaprestashop:reindex
It works fine in my Production ...
-1
votes
1
answer
394
views
Drupal upgrade 9 to 10 composer conflicts
Fairly new to composer and have a couple of questions.
Following instructions here > https://www.drupal.org/docs/upgrading-drupal/upgrading-from-drupal-8-or-later/how-to-upgrade-from-drupal-9-to-...
0
votes
0
answers
339
views
Update Drupal from 10.3.9 to 10.4.0 Composer error
I have a website which had multiples updates in the past years without any issue.
Yesterday I tried to update drupal core from 10.3.9 to 10.4.0. Everything is working fine on my local docker, but when ...
0
votes
1
answer
73
views
composer vendor override - Cannot declare class because the name is already in use
I needed to modify some vendor files, which I did the following way (which was fine in the past):
I copy the vendor file to a vendor-override directory outside the vendor directory and modify it to my ...
1
vote
1
answer
111
views
How do you have "composer require" save the exact package version, instead of a range?
When installing a composer package (eg. composer require foo/bar), how to save exact package version (eg. 1.0.0) in composer.json by default instead of a version range (^1.0)?
Eg. NPM has this ...
-1
votes
1
answer
62
views
Composer yields errors for deleting, moving and removing commands (Godaddy shared hosting)
I installed Composer using PuTTY via SSH on my GoDaddy shared hosting environment, intending to manage and update Drupal modules. The hosting environment is shared, with PHP version 8.2 and SSH access ...
2
votes
1
answer
3k
views
herd-lite and composer changed my php.ini location
I'm new to PHP, but I need a CodeIgniter 4 project. I downloaded php 8.3.12 and added it to the environment variables (I'm using Windows 10). After that I installed composer with the setup-exe and ...