Some additional composer functions
Installs: 3 547
- php: >=7.4
- phpstan/phpstan: ^1.0
- phpunit/phpunit: ^9.0
- rector/rector: ^0.12
- symplify/easy-coding-standard: ^10.0
This library provides useful functions for Composer.
This library is made for the use with Composer. Add it to your project by running
$ composer require bitandblack/composer-helper.
Path to vendor folder
Get the path to your vendor folder by calling:
<?php use BitAndBlack\Composer\VendorPath; $vendorFolder = (string) new VendorPath();
This works also when your vendor folder has a different name.
Check if a class exists by calling
Composer::classExists(). This is a replacement for
class_exists() which may not work with Composer.
If you have any questions feel free to contact us under
Further information about Bit&Black can be found under www.bitandblack.com.