PackageTrack
Sign in Get early access

haydenpierce/class-finder

A library that can provide of a list of classes in a given namespace

0.6.0 17M downloads/mo #965 most downloaded on Packagist source

What this package is like to depend on

Last release 2 months ago

30 May 2026

Release timing varies

gaps range from 3 weeks to 2.6 years

Most releases are documented

notes for 18 of 22 stable releases

Nothing withdrawn

no release was ever pulled

8 years old

24 releases · first in 2018

4 releases in the last 12 months

see the full history below

Release timeline

24 releases · Aug 2018 to May 2026
2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 24
  1. 0.6.0 30 May 2026
    Release notes
    • (Merge Request) Major performance improvements via caching and other methods. Thanks Gregory Gerard
    Open source →
  2. 0.6.0-beta 30 May 2026 pre-release

    Nothing published for this version

  3. 0.5.4 30 May 2026
    Release notes
    • (Merge Request) Added support for emojis in filepaths, to support projects using livewire/livewire. Thanks Alex Bouma
    Open source →
  4. 0.5.4-beta 19 Jan 2026 pre-release

    Nothing published for this version

  5. 0.5.3 18 Jun 2023
    Release notes
    • (Merge Request) Improved support for .phar files. Thanks Sean Hamlin
    Open source →
  6. 0.5.2 01 May 2023
    Release notes
    • (Merge Request) Fixed a bug where a user's first party classes and vendor provided classes could not both be discovered when using the same namespace
    Open source →
  7. 0.5.1 07 Feb 2023
    Release notes
    • (Merge Request) Prevent a notice level error in cases where the psr-4 key isn't defined in an application's composer.json file., Thanks Jason Gill
    Open source →
  8. 0.5.0 04 Feb 2023
    Release notes
    • (Merge Request) Added ClassFinder::disablePSR4Vendors and ClassFinder::enablePSR4Vendors(), Thanks Jason Gill
    Open source →
  9. 0.4.4 26 Sep 2022
    Release notes
    • (Merge Request) Improvements to the readme for copy/pasting and Packagist. Thanks, tacman1
    • (Merge Request) Fixed a type hint for an internally used function. Thanks, tacman1
    Open source →
  10. 0.4.3 05 Jan 2021
    Release notes
    • (Merge Request) Updated testing harness to use PHPUnit 9.5.0 and PHP 8.0. No functional changes.
    Open source →
  11. 0.4.2 20 Apr 2020
    Release notes
    • (Merge Request) Remove tests and other non-critical files when installing with composer --perfer-dist. Thanks, Benedikt Franke
    Open source →
  12. 0.4.1 31 Mar 2020
    Release notes
    • #12 (Merge Request) Fix a deprecation notice. Thanks, Benedikt Franke and Adam Stark
    Open source →
  13. 0.4.0 15 Sep 2019
    Release notes
    • #16 Don't throw if a namespace contains no classes. Thanks, Benedikt Franke
    • #16 Add method Classfinder::namespaceHasClasses to detect if a namespace is empty. Thanks, Benedikt Franke
    Open source →
  14. 0.3.3 14 Jul 2019
    Release notes
    • (Original Merge Request) via (Merge Request) Fixed a bug that caused an exception to be thrown when the exec function was disabled by PHP configuration - even when files support was explicitly disabled. Thanks, incraigulous.
    Open source →
  15. 0.3.2 25 May 2019
    Release notes
    • #11 (Merge Request) Fixed a bug that caused "Access Denied" errors when some directories were missing some permissions. Thanks, Leonardo Losoviz.
    Open source →
  16. 0.3.1 02 Mar 2019
    Release notes
    • #8 (Merge Request) Fixed a bug that caused notices to be raised when a composer.json doesn't include an autoload configuration. Thanks, walid.ammar and TheFehr.
    Open source →
  17. 0.2.0 23 Sep 2018
    Release notes
    • Added support for finding classes declared via classmap.
    • Exceptions will no longer be thrown when PSR4 can't find a registered namespace (because it could be a valid class declared in a classmap)

    Example composer.json that is now supported:

      ...
      "autoload": {
        ...
        "classmap": [ "src/foo/", "src/bar/" ]
      }
      ...
    
    Open source →
  18. 0.1.2 05 Sep 2018
    Release notes
    • Fixed composer.json so that it can be correctly installed on PHP 7+.
    Open source →
  19. 0.1.1 03 Sep 2018
    Release notes
    • Fixed a Linux specific bug that caused absolute paths to fail to resolve and erroneously throw exceptions. If you were affected by this bug, you would see errors like Unknown namespace Acme\Whatever. Checked for files in , but that directory did not exist. [...] when that namespace does indeed exist.
    • Support for PHP 5.3 is now under testing harness and should work now.
    Open source →
  20. 0.1.0 03 Sep 2018
    Release notes
    • Vastly improved PSR4 support
      • Loading classes from Composer packages is now supported.
      • Namespaces that map to multiple directories is now supported.
      • Fixed a bug where ClassFinder would use a more generic (and therefore wrong) namespace over a better one. (Selecting Acme, when Acme\Foo is a better choice)
    • Manually overriding the AppRoot is now done with a static method instead of a static property

    Mapping a namespace to multiple directories:

        ...
        "autoload": {
            "psr-4": {
                "Acme\\Foo\\": [ "src/", "srcButDifferent/" ]
            }
        }
        ...
    

    Old overriding app root:

    ClassFinder::appRoot = '/home/hpierce/whatevs'; 
    

    New overriding app root:

    ClassFinder::setAppRoot('/home/hpierce/whatevs'); 
    
    Open source →
  21. 0.0.2 05 Aug 2018

    Nothing published for this version

  22. 0.0.1 04 Aug 2018

    Nothing published for this version

  23. 0.3-beta 01 Jan 2019

    Nothing published for this version

  24. 0.3 18 Feb 2019

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive