codeigniter4 / CodeIgniter4

Open Source PHP Framework (originally from EllisLab)
https://codeigniter.com/
MIT License
5.38k stars 1.9k forks source link

Bug: When Install fresh codeigniter 4 Project I am getting "does not comply with psr-4 autoloading standard" #8989

Closed NavinRiyaz closed 4 months ago

NavinRiyaz commented 4 months ago

PHP Version

8.3

CodeIgniter4 Version

4.5.2

CodeIgniter4 Installation Method

Composer (using codeigniter4/appstarter)

Which operating systems have you tested for this bug?

Windows

Which server did you use?

fpm-fcgi

Database

No response

What happened?

When I Install Fresh Codeigniter 4 Project using "composer create-project codeigniter4/appstarter ." I am getting warning in console like PSR-4 Standards. Here is my composer installation log


Creating a "codeigniter4/appstarter" project at "./"
Installing codeigniter4/appstarter (v4.5.2)
  - Installing codeigniter4/appstarter (v4.5.2): Extracting archive
Created project in C:\Users\Admin\Herd\stf\.
Loading composer repositories with package information
Updating dependencies
Lock file operations: 33 installs, 0 updates, 0 removals
  - Locking codeigniter4/framework (v4.5.2)
  - Locking fakerphp/faker (v1.23.1)
  - Locking laminas/laminas-escaper (2.13.0)
  - Locking mikey179/vfsstream (v1.6.11)
  - Locking myclabs/deep-copy (1.12.0)
  - Locking nikic/php-parser (v5.0.2)
  - Locking phar-io/manifest (2.0.4)
  - Locking phar-io/version (3.2.1)
  - Locking phpunit/php-code-coverage (10.1.14)
  - Locking phpunit/php-file-iterator (4.1.0)
  - Locking phpunit/php-invoker (4.0.0)
  - Locking phpunit/php-text-template (3.0.1)
  - Locking phpunit/php-timer (6.0.0)
  - Locking phpunit/phpunit (10.5.24)
  - Locking psr/container (2.0.2)
  - Locking psr/log (3.0.0)
  - Locking sebastian/cli-parser (2.0.1)
  - Locking sebastian/code-unit (2.0.0)
  - Locking sebastian/code-unit-reverse-lookup (3.0.0)
  - Locking sebastian/comparator (5.0.1)
  - Locking sebastian/complexity (3.2.0)
  - Locking sebastian/diff (5.1.1)
  - Locking sebastian/environment (6.1.0)
  - Locking sebastian/exporter (5.1.2)
  - Locking sebastian/global-state (6.0.2)
  - Locking sebastian/lines-of-code (2.0.2)
  - Locking sebastian/object-enumerator (5.0.0)
  - Locking sebastian/object-reflector (3.0.0)
  - Locking sebastian/recursion-context (5.0.0)
  - Locking sebastian/type (4.0.0)
  - Locking sebastian/version (4.0.1)
  - Locking symfony/deprecation-contracts (v3.5.0)
  - Locking theseer/tokenizer (1.2.3)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 33 installs, 0 updates, 0 removals
  - Installing psr/log (3.0.0): Extracting archive
  - Installing laminas/laminas-escaper (2.13.0): Extracting archive
  - Installing codeigniter4/framework (v4.5.2): Extracting archive
  - Installing symfony/deprecation-contracts (v3.5.0): Extracting archive
  - Installing psr/container (2.0.2): Extracting archive
  - Installing fakerphp/faker (v1.23.1): Extracting archive
  - Installing mikey179/vfsstream (v1.6.11): Extracting archive
  - Installing sebastian/version (4.0.1): Extracting archive
  - Installing sebastian/type (4.0.0): Extracting archive
  - Installing sebastian/recursion-context (5.0.0): Extracting archive
  - Installing sebastian/object-reflector (3.0.0): Extracting archive
  - Installing sebastian/object-enumerator (5.0.0): Extracting archive
  - Installing sebastian/global-state (6.0.2): Extracting archive
  - Installing sebastian/exporter (5.1.2): Extracting archive
  - Installing sebastian/environment (6.1.0): Extracting archive
  - Installing sebastian/diff (5.1.1): Extracting archive
  - Installing sebastian/comparator (5.0.1): Extracting archive
  - Installing sebastian/code-unit (2.0.0): Extracting archive
  - Installing sebastian/cli-parser (2.0.1): Extracting archive
  - Installing phpunit/php-timer (6.0.0): Extracting archive
  - Installing phpunit/php-text-template (3.0.1): Extracting archive
  - Installing phpunit/php-invoker (4.0.0): Extracting archive
  - Installing phpunit/php-file-iterator (4.1.0): Extracting archive
  - Installing theseer/tokenizer (1.2.3): Extracting archive
  - Installing nikic/php-parser (v5.0.2): Extracting archive
  - Installing sebastian/lines-of-code (2.0.2): Extracting archive
  - Installing sebastian/complexity (3.2.0): Extracting archive
  - Installing sebastian/code-unit-reverse-lookup (3.0.0): Extracting archive
  - Installing phpunit/php-code-coverage (10.1.14): Extracting archive
  - Installing phar-io/version (3.2.1): Extracting archive
  - Installing phar-io/manifest (2.0.4): Extracting archive
  - Installing myclabs/deep-copy (1.12.0): Extracting archive
  - Installing phpunit/phpunit (10.5.24): Extracting archive
11 package suggestions were added by new dependencies, use `composer suggest` to see details.
Generating optimized autoload files
Class Config\App located in ./app/Config/App.php does not comply with psr-4 autoloading standard (rule: App\ => ./app). Skipping.
Class Config\Autoload located in ./app/Config/Autoload.php does not comply with psr-4 autoloading standard (rule: App\ => ./app). Skipping.
Class Config\Cache located in ./app/Config/Cache.php does not comply with psr-4 autoloading standard (rule: App\ => ./app). Skipping.
Class Config\ContentSecurityPolicy located in ./app/Config/ContentSecurityPolicy.php does not comply with psr-4 autoloading standard (rule: App\ => ./app). Skipping.
Class Config\Cookie located in ./app/Config/Cookie.php does not comply with psr-4 autoloading standard (rule: App\ => 
./app). Skipping.
Class Config\Cors located in ./app/Config/Cors.php does not comply with psr-4 autoloading standard (rule: App\ => ./app). Skipping.
Class Config\CURLRequest located in ./app/Config/CURLRequest.php does not comply with psr-4 autoloading standard (rule: App\ => ./app). Skipping.
Class Config\Database located in ./app/Config/Database.php does not comply with psr-4 autoloading standard (rule: App\ => ./app). Skipping.
Class Config\DocTypes located in ./app/Config/DocTypes.php does not comply with psr-4 autoloading standard (rule: App\ => ./app). Skipping.
Class Config\Email located in ./app/Config/Email.php does not comply with psr-4 autoloading standard (rule: App\ => ./app). Skipping.
Class Config\Encryption located in ./app/Config/Encryption.php does not comply with psr-4 autoloading standard (rule: 
App\ => ./app). Skipping.
Class Config\Exceptions located in ./app/Config/Exceptions.php does not comply with psr-4 autoloading standard (rule: 
App\ => ./app). Skipping.
Class Config\Feature located in ./app/Config/Feature.php does not comply with psr-4 autoloading standard (rule: App\ => ./app). Skipping.
Class Config\Filters located in ./app/Config/Filters.php does not comply with psr-4 autoloading standard (rule: App\ => ./app). Skipping.
Class Config\ForeignCharacters located in ./app/Config/ForeignCharacters.php does not comply with psr-4 autoloading standard (rule: App\ => ./app). Skipping.
Class Config\Format located in ./app/Config/Format.php does not comply with psr-4 autoloading standard (rule: App\ => 
./app). Skipping.
Class Config\Generators located in ./app/Config/Generators.php does not comply with psr-4 autoloading standard (rule: 
App\ => ./app). Skipping.
Class Config\Honeypot located in ./app/Config/Honeypot.php does not comply with psr-4 autoloading standard (rule: App\ => ./app). Skipping.
Class Config\Images located in ./app/Config/Images.php does not comply with psr-4 autoloading standard (rule: App\ => 
./app). Skipping.
Class Config\Kint located in ./app/Config/Kint.php does not comply with psr-4 autoloading standard (rule: App\ => ./app). Skipping.
Class Config\Logger located in ./app/Config/Logger.php does not comply with psr-4 autoloading standard (rule: App\ => 
./app). Skipping.
Class Config\Migrations located in ./app/Config/Migrations.php does not comply with psr-4 autoloading standard (rule: 
App\ => ./app). Skipping.
Class Config\Mimes located in ./app/Config/Mimes.php does not comply with psr-4 autoloading standard (rule: App\ => ./app). Skipping.
Class Config\Modules located in ./app/Config/Modules.php does not comply with psr-4 autoloading standard (rule: App\ => ./app). Skipping.
Class Config\Optimize located in ./app/Config/Optimize.php does not comply with psr-4 autoloading standard (rule: App\ => ./app). Skipping.
Class Config\Pager located in ./app/Config/Pager.php does not comply with psr-4 autoloading standard (rule: App\ => ./app). Skipping.
Class Config\Paths located in ./app/Config/Paths.php does not comply with psr-4 autoloading standard (rule: App\ => ./app). Skipping.
Class Config\Publisher located in ./app/Config/Publisher.php does not comply with psr-4 autoloading standard (rule: App\ => ./app). Skipping.
Class Config\Routing located in ./app/Config/Routing.php does not comply with psr-4 autoloading standard (rule: App\ => ./app). Skipping.
Class Config\Security located in ./app/Config/Security.php does not comply with psr-4 autoloading standard (rule: App\ => ./app). Skipping.
Class Config\Services located in ./app/Config/Services.php does not comply with psr-4 autoloading standard (rule: App\ => ./app). Skipping.
Class Config\Session located in ./app/Config/Session.php does not comply with psr-4 autoloading standard (rule: App\ => ./app). Skipping.
Class Config\Toolbar located in ./app/Config/Toolbar.php does not comply with psr-4 autoloading standard (rule: App\ => ./app). Skipping.
Class Config\UserAgents located in ./app/Config/UserAgents.php does not comply with psr-4 autoloading standard (rule: 
App\ => ./app). Skipping.
Class Config\Validation located in ./app/Config/Validation.php does not comply with psr-4 autoloading standard (rule: 
App\ => ./app). Skipping.
Class Config\View located in ./app/Config/View.php does not comply with psr-4 autoloading standard (rule: App\ => ./app). Skipping.
26 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
No security vulnerability advisories found.

Steps to Reproduce

composer create-project codeigniter4/appstarter .

Expected Output

Without PSR-4 Warnings

Anything else?

No response

kenjis commented 4 months ago

Duplicate of #8951