dealfonso / sapp

Simple and Agnostic PDF Document Parser in PHP - sign PDF docs using PHP
GNU Lesser General Public License v3.0
110 stars 29 forks source link

Composer install warning => "Class ddn\sapp\helpers\UUID located in ./vendor/ddn/sapp/src/helpers/uuid.php does not comply with psr-4 autoloading standard. Skipping." #24

Closed raimon-segura closed 1 year ago

raimon-segura commented 1 year ago

Hi!,

I've found a warning message when I install this project using composer, but all works well ...it says:

Class ddn\sapp\helpers\UUID located in ./vendor/ddn/sapp/src/helpers/uuid.php does not comply with psr-4 autoloading standard. Skipping.

Not sure if its good or bad :D .. what I do to use it is use ddn\sapp\PDFDoc; at the beginning of php file

Thanks!

dealfonso commented 1 year ago

Hi,

latest commit changes the name of the file to comply with psr-4. @raimon-segura Could you please check it?

Regards

raimon-segura commented 1 year ago

Hi!,

Just reset & installed all composer packages again, but unfortunately it says the same thing: Class ddn\sapp\helpers\UUID located in ./vendor/ddn/sapp/src/helpers/uuid.php does not comply with psr-4 autoloading standard. Skipping.

... I'm using Composer version 2.3.10 2022-07-13 15:48:23 within this Yii2 project template => https://github.com/yiisoft/yii2-app-advanced , maybe its due to this reason.

Also, composer's changelog don't say anything about autoloadind => https://github.com/composer/composer/blob/main/CHANGELOG.md

EDIT: just checked last composer version Composer version 2.4.2 2022-09-14 16:11:15 , and it says the same thing

EDIT2: Maybe the uuid should be renamed to Uuid => https://stackoverflow.com/a/65038720

Thanks!

dealfonso commented 1 year ago

Hi,

as of the message Class ddn\sapp\helpers\UUID located in ./vendor/ddn/sapp/src/helpers/uuid.php does not comply with psr-4 autoloading standard. Skipping, it seems that you are not using the latest version (1.1.0), as the file's name in this version is in capital letters.

Could you please try upgrading sapp?

raimon-segura commented 1 year ago

HI!,

You are right, it seems I have un force update someway because there is the git-hash reference in composer.lock "reference": "a3eec1e6cc437157bc7576ae123419b9b578c338" ..let me check again.. thanks!

raimon-segura commented 1 year ago

Hi!,

Now it works, I have to do composer update ddn/sapp to update git hash package in composer.lock ..Also, i've checked my pdf and they are well too!

thanks!