bitandblack / composer-helper
Some additional composer functions
    2.0.0
    2024-09-26 21:39 UTC
Requires
- php: >=8.2
 
Requires (Dev)
- phpstan/phpstan: ^1.0
 - phpunit/phpunit: ^11.0
 - rector/rector: ^1.0
 - symplify/easy-coding-standard: ^12.0
 
README
Bit&Black Composer Helper
This library provides useful functions for Composer.
Installation
This library is made for the use with Composer. Add it to your project by running $ composer require bitandblack/composer-helper.
Usage
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.
Class existence
Check if a class exists by calling Composer::classExists(). This is a replacement for class_exists() which may not work with Composer.
Help
If you have any questions feel free to contact us under hello@bitandblack.com.
Further information about Bit&Black can be found under www.bitandblack.com.