PackageTrack
Sign in Get early access

fidry/cpu-core-counter

Tiny utility to get the number of CPU cores.

1.3.0 188M downloads/mo #136 most downloaded on composer theofidry/cpu-core-counter

What this package is like to depend on

Last release 1 years ago

14 Aug 2025

Release timing varies

gaps range from 9 days to 12 months

Most releases are documented

notes for 10 of 12 stable releases

Nothing withdrawn

no release was ever pulled

4 years old

12 releases · first in 2022

0 releases in the last 12 months

see the full history below

Release timeline

12 releases · Nov 2022 to Aug 2025
2023 2024 2025 2026
Release Pre-release

Releases

latest 12
  1. 1.3.0 14 Aug 2025
    Release notes

    Features

    • Support KUBERNETES_CPU_LIMIT using millicores (#161)
    Open source →
  2. 1.2.0 06 Aug 2024
    Release notes

    Features

    Fixes

    • Do not use --all for nproc by default (#133)
    Open source →
  3. 1.1.0 07 Feb 2024
    Release notes

    Features

    • Introduce more Windows specific finders (#112)
    Open source →
  4. 1.0.0 17 Sep 2023
    Release notes

    No changes since 0.5.1! Easy upgrade!

    Open source →
  5. 0.5.1 24 Dec 2022
    Release notes

    Features

    Open source →
  6. 0.5.0 17 Dec 2022
    Release notes

    Features

    • fcd320c [BC Break] Rename Exec namespace into Executor (#91)
    • b830f3c [BC Break] Inject ProcessExecutor to the finders (#89)
    • 040127e [BC Break] Make OnlyOn & SkippedOnWindows finders more generic and extend them to OS families (#94)

    Misc

    • bc4d88b Make ProcOpenBasedFinderTest extend ProcOpenBasedFinderTestCase (#90)
    • a29d68f Move checking if proc_open function exists to the executor (#92)
    • f6b95e1 Remove unnecessary code for NProcFinder (#93)
    Open source →
  7. 0.4.1 16 Dec 2022
    Release notes
    • 79261cc Use 'static' instead of 'self' method call to process command result (#88)
    Open source →
  8. 0.4.0 10 Dec 2022
    Release notes

    Bugfixes

    • 0166da6 [BC Break] Change PopenBased finders to ProcOpenBased finders (#75)
    • 6db5e45 [BC Break] Rename LinuxyNProcessorFinder to _NProcessorFinder (#78)
    • f97cce1 Fix the Wmic commands (#83)
    • 666cb04 Fix restricted test (#84)

    Misc

    • 05dde06 Add E2E tests (#74)
    • bb9bc13 Execute the shell script directly on Windows instead of using make (#76)
    • 4d56f0b Extract skipping or not a finder on Windows into a decorator finder (#77)
    • 31903e8 Make generating names more performant (#79)
    • b3d0bb5 Add tests to ensure the decorators handle dynamic names (#80)
    • a949e06 Refactor nproc finder into a proc-open based finder (#81)
    • 265631b Add inspection job (#73)
    • f702e5c Add test case for CpuInfoFinder (#82)
    Open source →
  9. 0.3.1 08 Dec 2022
    Release notes

    Bugfixes

    • 8f1d94f Register the Windows finder before Nproc (#71)
    • b7efb38 Fix compatibility for PHP 7.2 (#72)
    Open source →
  10. 0.3.0 08 Dec 2022
    Release notes

    Features

    • df1f05d Add support for PHP 7.2 (#41)
    • 72b7d5d Allow to configure nproc (#44)
    • ee56c03 Add HwPhysicalFinder (#46)
    • 6184d0e Add CpuCoreCounter::getFinderAndCores() (#50)
    • 4a0413c Move the dummy core finder from the test to the source directory (#51)
    • 1fd5dca [BC Break] Add a way to get the logical and physical number of cores for Windows (#52)
    • 7a6740d [BC Break] Introduce a diagnosis tool (#60)
    • 408e7cf [BC Break] Move registry lists to the registry (#69)
    • 1513193 Add NProcessor based finders (#67)

    Misc

    • 25dbab2 [BC Break] Rename the CpuFinder namespace to CpuCoreFinder (#39)
    • 80bcfdc Move the shell_exec function check to supportsNproc() (#40)
    • f7442af Install dependencies in the CI as a dedicated step (#42)
    • b57c631 Add docs for Nproc (#43)
    • fc1cdf5 [BC Break] Rename HwFinder to HwLogicalFinder (#45)
    • 49c34df Refactor finders to leverage a common base (#47)
    • 89a5259 [BC Break] Move the finders into a dedicated Finder namespace (#48)
    • b2549c9 Add a base for e2e tests (#53)
    • 0179408 Update gitattributes (#61)
    • b52bb04 Do not inspect src for PHPStan tests (#62)
    • 864d201 Add tests for ShellExec (#63)
    • bcddd3b Fix PHPUnit config (#64)
    • 4f1d36e Move the MakefileTest to the AutoReview namespace (#49)
    • 2594740 Add documentation about the diagnosis commands (#65)
    • 1bd4c79 Add BCP section (#66)
    • 6106a1f Simplify some tests (#68)
    Open source →
  11. 0.2.0 04 Dec 2022

    Nothing published for this version

  12. 0.1.0 30 Nov 2022

    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