Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

psr-0

Why use a PSR-0 or PSR-4 autoload in composer if classmap is actually faster?

December 18, 2023 by Tarik
Categories php Tags autoload, composer-php, php, psr-0, psr-4 Leave a comment

Composer/PSR – How to autoload functions?

March 10, 2023 by Tarik

You can autoload specific files by editing your composer.json file like this: “autoload”: { “files”: [“src/helpers.php”] } (thanks Kint)

Categories composer-php Tags autoload, composer-php, psr-0 Leave a comment

What Are the Differences Between PSR-0 and PSR-4?

October 5, 2022 by Tarik

They are very similar so it is not surprising that it’s a bit confusing. The summary is that PSR-0 had some backwards compatibility features for PEAR-style classnames that PSR-4 dropped, as such it only supports namespaced code. On top of that PSR-4 does not force you to have the whole namespace as a directory structure, … Read more

Categories php Tags composer-php, laravel, php, psr-0, psr-4 Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa