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
Releases
latest 12-
1.3.014 Aug 2025 -
1.2.006 Aug 2024Release notes
Open source →Features
- Add a new method to get the number of CPU cores to use for parallelism (#127, #129, #130, #135, #137, #136, #139, #143, #142, #140, #144)
- Improve the diagnosis of the finders to state the result returned (#134)
- Add an easier way to debug (#131)
Fixes
- Do not use --all for nproc by default (#133)
-
1.1.007 Feb 2024 -
1.0.017 Sep 2023 -
0.5.124 Dec 2022 -
0.5.017 Dec 2022 -
0.4.116 Dec 2022Release notes
Open source → -
0.4.010 Dec 2022Release notes
Open source →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)
-
0.3.108 Dec 2022 -
0.3.008 Dec 2022Release notes
Open source →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)
-
0.2.004 Dec 2022Nothing published for this version
-
0.1.030 Nov 2022Nothing published for this version