pouya1364/probabilistic-bundle
A Laravel-friendly PHP package offering probabilistic data structures and helpers for approximate membership, counting, and cardinality estimation. Use it to build memory-efficient deduplication, caching, rate limiting, and analytics features with simple APIs when exact sets are too costly.
Architecture fit
pouya1364/probabilistic-php in a Symfony bundle, not a Laravel package. Laravel is built on Symfony components, not the Symfony framework, so bundle auto-registration, the Kernel, and Symfony's DI extension mechanism are not available out of the box.ProbabilisticRegistry plus per-instance autowired services. That is a clean seam and maps well onto use cases we actually have (dedup keys, "have we seen this?" checks, unique-visitor estimation, heavy-hitter/top-K, cache-stampede suppression).probabilistic:list console command is a genuinely useful operational affordance for discovering what is configured per environment.Integration feasibility
ServiceProvider, PHP-array config under config/, and its own container. Neither the registry nor the autowired per-instance services will appear automatically in a Laravel app.config/probabilistic.php. That is a small amount of glue, but it is our glue, not the vendor's.Technical risk
Key questions
Stack fit
Migration path
SeenBefore, CardinalityEstimator) so the vendor can be swapped.0.1.0) rather than a caret range; pre-1.0 caret ranges are how surprise breakage arrives.Compatibility
config/probabilistic.php.probabilistic:list should be re-exposed as an Artisan command if operators are expected to use it; otherwise it is dead weight on our stack.Sequencing
pouya1364/probabilistic-php) on its own merits, independent of the bundle — determine persistence, accuracy, and sizing answers.Maintenance
Support
Scaling
Failure modes
Ramp-up
How can I help you explore Laravel packages today?