Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Cpu Core Counter Laravel Package

fidry/cpu-core-counter

Tiny PHP utility to detect CPU core count (logical or physical) with memoized results. Provides sensible defaults plus configurable “finders” per OS, parallelisation-friendly available cores, and safe fallbacks via exception handling or getCountWithFallback().

View on GitHub
Deep Wiki
Context7
1.3.0

Features

  • Support KUBERNETES_CPU_LIMIT using millicores (#161)
1.2.0

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.0

Features

  • Introduce more Windows specific finders (#112)
1.0.0

No changes since 0.5.1! Easy upgrade!

0.5.1

Features

  • Add lscpu Finder (#86, #95)
0.5.0

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)
0.4.1
  • 79261cc280aded96d098e1b0e0ba0c4881b432c2 Use 'static' instead of 'self' method call to process command result (#88)
0.4.0

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.1

Bugfixes

  • 8f1d94f Register the Windows finder before Nproc (#71)
  • b7efb38 Fix compatibility for PHP 7.2 (#72)
0.3.0

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.0

Features

  • bb5036a Introduce CPUCoreFinders (#14)
  • 6b9a0cc Allow the user to register which finders to use to the CPUCoreCounter (#20)
  • f01ffc5 Throw exception upon failure instead of arbitrary default value (#21)
  • f5f3fa8 Re-order the default finders (#27)
  • e33ff4f Introduce the NProc finder (#13)

Bugfixes

  • 2c088b8 Fix handling of invalid values for the HwFinder and WindowsWmic finder (#22)
  • 6b8549b Remove deprecated usage of hw.nproc (#24)
  • a389a3a Simplify CpuInfoFinder (#26)

Misc

  • 6d3e2af Fix license (#12)
  • 5392f6a Refactor CpuCoreCounter (#15)
  • fc210d1 Consolidate CPUInfo finder (#16)
  • 1f1a2eb Consolidate HWFinder (#17)
  • c68c749 Consolidate WindowsWmicFinder (#18)
  • 854f92d Fix the CPUCoreCounter test case name (#19)
  • 2114c6e Consolidate HwFinder (#23)
  • f1ea48c Consolidate WindowsWmicFinder (#25)
  • 7704b16 Remove unnecessary proc_open check (#28)
  • bb1e417 Fix issues reported by PHPStan (#29)
  • c8d6cac Add MakefileTest (#30)
  • fcf6d38 Run CS fixer on 8.1 (#31)
  • 7454c93 Remove unnecessary code (#32)
  • aec5e16 Remove webmozart/assert dependency (#33)
  • c528907 Update doc (#34)
0.1.0
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport