Simplify folder nesting from
/vendor/jblond/php-diff/lib/jblond/
to
/vendor/jblond/php-diff/src/
vendor
├── hashids
│ └── hashids
│ ├── src
│ │ ├── Math
│ │ │ ├── BCMath.php
│ │ │ ├── Gmp.php
│ │ │ └── MathInterface.php
│ │ ├── HashidsInterface.php
│ │ └── Hashids.php
│ ├── composer.json
│ └── LICENSE
├── jblond
│ └── php-diff
│ ├── lib
│ │ └── jblond
│ │ ├── Diff
│ │ │ ├── Renderer
│ │ │ │ ├── Html
│ │ │ │ │ ├── Merged.php
│ │ │ │ │ ├── SideBySide.php
│ │ │ │ │ └── Unified.php
│ │ │ │ ├── Text
│ │ │ │ │ ├── Context.php
│ │ │ │ │ ├── InlineCli.php
│ │ │ │ │ ├── Json.php
│ │ │ │ │ ├── UnifiedCli.php
│ │ │ │ │ └── Unified.php
│ │ │ │ ├── MainRendererAbstract.php
│ │ │ │ ├── MainRenderer.php
│ │ │ │ └── SubRendererInterface.php
│ │ │ ├── ConstantsInterface.php
│ │ │ ├── SequenceMatcher.php
│ │ │ └── Similarity.php
│ │ └── Diff.php
│ ├── composer.json
│ ├── generateChangelog.php
│ ├── LICENSE
│ └── README.md
├── jblond
│ └── php-diff
│ ├── src
│ │ ├── Diff
│ │ │ ├── Renderer
│ │ │ │ ├── Html
│ │ │ │ │ ├── Merged.php
│ │ │ │ │ ├── SideBySide.php
│ │ │ │ │ └── Unified.php
│ │ │ │ ├── Text
│ │ │ │ │ ├── Context.php
│ │ │ │ │ ├── InlineCli.php
│ │ │ │ │ ├── Json.php
│ │ │ │ │ ├── UnifiedCli.php
│ │ │ │ │ └── Unified.php
│ │ │ │ ├── MainRendererAbstract.php
│ │ │ │ ├── MainRenderer.php
│ │ │ │ └── SubRendererInterface.php
│ │ │ ├── ConstantsInterface.php
│ │ │ ├── SequenceMatcher.php
│ │ │ └── Similarity.php
│ │ └── Diff.php
│ ├── composer.json
│ ├── generateChangelog.php
│ ├── LICENSE
│ └── README.md
The src folder is integral to PSR-4, the modern PHP autoloading standard. You map a namespace prefix to the src directory in your composer.json.
"autoload": {
"psr-4": {
"jblond\\" : "src"
}
},
Simplify folder nesting from
/vendor/jblond/php-diff/lib/jblond/to
/vendor/jblond/php-diff/src/The
srcfolder is integral to PSR-4, the modern PHP autoloading standard. You map a namespace prefix to thesrcdirectory in yourcomposer.json.