11,155 questions
0
votes
0
answers
56
views
How to install league/csv bundle with Doctrine v3.3 on Symfony?
I am having a problem today installing the league/csv bundle (v9.27) on my Symfony (v7.2) project with doctrine/orm (v3.3)! When I run command php require league/csv, I get this message:
Your ...
Best practices
4
votes
3
replies
62
views
How does one correctly version a Wordpress project?
I have been wondering how to version Wordpress projects correctly.
Versioning the entire Wordpress directory? I'd be versionning a lot of code that's not mine (Wordpress core, theme(s), plugins...) ...
2
votes
1
answer
63
views
Composer issue when trying to install "phpoffice/phpspreadsheet". SSL certificate problem: self-signed certificate in certificate chain
I got this error:
Composer issue when trying to install "phpoffice/phpspreadsheet". SSL certificate problem: self-signed certificate in certificate chain
When i was trying to install ...
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
│ ...
2
votes
1
answer
173
views
Why does doctrine/doctrine-bundle cause errors in my symfony / composer project after upgrade?
When trying to do a "composer upgrade", it fails in "@auto-scripts" when reaching doctrine/doctrine-bundle.
The error is:
Executing script cache:clear [KO]
[KO]
Script cache:clear ...
-1
votes
2
answers
101
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
116
views
laravel 9 upgrade composer conflicts
I try to Upgrading To 9 From 8, but after I applied some changes in composer.json I got error :
result laravel:
composer update Problem 1
- Root composer.json requires facade/ignition ^2.3.6 -> ...
-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. ...
0
votes
0
answers
39
views
How to handle sketches in Composer-based projects [duplicate]
I need to sketch out some behavior from a dependency (GuzzleHttp\Client) installed via composer. How do I finagle my include_path in a sketch (i.e. a standalone PHP script that does not use the ...
-1
votes
1
answer
119
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
90
views
AWS Elastic Beanstalk Laravel Composer Problem
I am trying to deploy a Laravel app to Elastic Beanstalk. I have changed the .ebextensions folder for the .platform folder and am using hooks.
The app is a Laravel 12 app using AWS's PHP 8.4 running ...
0
votes
1
answer
84
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
2
answers
291
views
Laravel Error: Target class [files] does not exist (on fresh install)
I'm working on a fresh Laravel 12.12.0 project and facing a strange issue that I can't resolve. Whenever I try to run any Artisan command (like php artisan serve, php artisan route:list, or php ...
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
1
answer
91
views
Composer update and composer create-project are timing out getting the https://repo.packagist.org/packages.json file
How do you fix the composer create-project test command from timing out when retrieving the https://repo.packagist.org/packages.json file?
The command composer diagnose -vv gives this output:
> ...
-1
votes
2
answers
85
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&...
-1
votes
1
answer
61
views
Composer version control vendor directory with local repository
We don't want to run composer update on our production server we would rather version control the vendor folder. We have shared files between our webapplications and we have a git repository called &...
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, ...
-1
votes
1
answer
194
views
Impossible to install composer on windows 11 [duplicate]
I can't install composer on my Windows 11 machine.
And I got the error
OpenSSL failed with a 'certificate verify failed' error. This
indicates a problem with the Certificate Authority file(s) on your
...
-2
votes
3
answers
191
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. ...
-3
votes
1
answer
323
views
The Composer installer script was not successful [exit code 1] for Laravel
I am getting the following error when trying to install Composer.
The Composer installer script was not successful [exit code 1].
OpenSSL failed with a 'certificate verify failed' error. This ...
0
votes
1
answer
166
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 ...
0
votes
0
answers
37
views
authentication issue with php script running composer with private repos
I am building a management system to handle composer updates on a group of websites.
The issue I am encountering is authenticating with a private repository.
There is an auth.json file, and running ...
-2
votes
1
answer
564
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 ...
-2
votes
1
answer
199
views
Docker-CE (rootless) fails for DDEV, Ubuntu 24.04.2 LTS [closed]
I have been working my way through the CMS guidance to create a DDEV project to create a local Drupal (11) website. I get to the ddev Composer step and this happens:
$ mpw1950@McCullin:~/ve25$ ddev ...
1
vote
1
answer
369
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",
&...
-2
votes
1
answer
175
views
Can't remove Laravel installation with composer on a Mac [closed]
I manually deleted the vendor folder in user/.composer
After I run also composer global remove laravel/installer
This on my mac Monterey and the terminal say this message:
after i run the command ...
0
votes
1
answer
409
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": &...
0
votes
3
answers
87
views
Composer how to create selectable package
Introduction
I created a small package that contains ValueObject type objects for measurement units.
I have a MeasurementUnitValueObject class (which implement interface ValueObject), which has two ...
1
vote
1
answer
112
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
1
answer
37
views
Generate 'composer fund' in Markdown format for your README
I'm developing on (yet another) PHP project and I'm trying to create a nice "Donate" section in my README.md for that will be rendered in a GitLab. I would like to mention sub-projects and ...
0
votes
0
answers
55
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 ...
-1
votes
1
answer
520
views
During inheritance of ArrayAccess: Uncaught ErrorException: Return type of Illuminate\Support\Collection::offsetExists($key) should either be [closed]
I have an old laravel app (v6) that is still running on PHP 7.4
Laravel and PHP versions both out of support, I know! That upgrade is a task for another day.
But strange error started when running ...
-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
...
0
votes
1
answer
146
views
PhpStorm specify which autoload mapping to use from composer.json
I have a php (Laravel) project with several namespace mappings applied in the composer.json, like this:
{
"autoload": {
"psr-4": {
"App\\": [
"...
1
vote
0
answers
588
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
46
views
How to fix 'The Composer installer script was not successful [exit code 1]' with OpenSSL certificate verify failed error? [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, ...
0
votes
0
answers
114
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 ...
0
votes
1
answer
209
views
Composer imported from repository fails to recognize some integrated PHP extensions (Docker) [duplicate]
I'm attempting to install project dependencies using Composer within a Docker container based on the php:8.3-fpm-alpine image. This image includes PHP with several extensions compiled and integrated ...
-1
votes
1
answer
406
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-...
-1
votes
1
answer
68
views
php composer use function and call in required files doesn't work [closed]
I'm trying to declare the JWT classes in a separate file to use them in functions, but it's not working, and I really don't understand why.
If I put the use declarations from use.php into jwt.php, it ...
0
votes
0
answers
340
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
0
answers
36
views
How to handle failed to open a stream warning (Cli.php) line 79; Magento local installation on Xampp; win11
I am trying to install Magento locally with Xampp on win11. I've tried to do the installation with composer, also trying different versions of magento package 2.4.6 (2.4.7 as well). I assumed that the ...
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 ...
0
votes
0
answers
29
views
Getting an error while try to do Composer self update
I am trying to update composer using following command:
C:\xampp\htdocs>composer self-update --2
But I am getting an error,
[Composer\Downloader\TransportException]
curl error 28 while ...
1
vote
1
answer
114
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 ...
0
votes
1
answer
262
views
Why running composer I got error that it does not match the constraint
I need to run laravel app with defined in composer file:
"require": {
"php": "^8.1",
"laravel/framework": "^10.0",
"tatumio/tatum-php&...
-1
votes
1
answer
66
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 ...
1
vote
3
answers
158
views
How do I resolve deleted Packagist package that was a dependency of a dependency? [duplicate]
Our PHP application has a Packagist dependency aaa/foo defined in our composer.json file.
This package has a dependency of a deleted Packagist package, let's call it: bbb/bar.
This is breaking our ...
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 ...