Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

esorone's avatar

Composer keeps installing package

Hello All,

I got some irritating package.

I tried to remove this one, but when I run composer update, the package will be installed again.

I tried numerous ways, including:

1.: Manual remove the package from composer.json and ran composer update.

2.: Manual remove all the package content, including the vendor part.

3.: Removed it from composer.json and Composer.lock and ran composer update

4.: composer remove package

5.: deleted the service provider.

I cleared my cache, and I ran optimise:clear as well. I did a composer clear-cache and a rm -fR ~/.cache/composer

Did a ctrl F to find all the references of this package, and deleted this.

I also installed the package again, and tried to remove it. This resulted in "Dependency "laravel/framework" is also a root requirement, but is not explicitly whitelisted. Ignoring."

But if I run a composer update, this package will be installed again :-(.....

I hope some of you guys can help me out to remove this package.. Unfortunately this is in one git branch, with I already made some development, so roll back a commit will not help :-(

Thanks in advanced.

0 likes
4 replies
esorone's avatar

Hello.

The name of the Package is: backpack/pagemanager. It is an add on on backpack

Cronix's avatar
Cronix
Best Answer
Level 67

Are you using any other packages, that also require backpack/pagemanager and would be pulling it in?

esorone's avatar

Hello Cronix,

As far as I can see no. I searched for pagemanager throughout the project and did not find any require pagemanager..

But, I removed all dependencies of backpack and after this I installed backpack again and the pagemanager was not installed anymore. So somewhere there was a dependency.

Thx.

Please or to participate in this conversation.