Download the PHP package ozdemir/subset-finder without Composer
On this page you can find all versions of the php package ozdemir/subset-finder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download ozdemir/subset-finder
More information about ozdemir/subset-finder
Files in ozdemir/subset-finder
Download ozdemir/subset-finder
More information about ozdemir/subset-finder
Files in ozdemir/subset-finder
Vendor ozdemir
Package subset-finder
Short Description A simple package to find the subset of a given set.
License MIT
Homepage https://github.com/ozdemir/subset-finder
Package subset-finder
Short Description A simple package to find the subset of a given set.
License MIT
Homepage https://github.com/ozdemir/subset-finder
Please rate this library. Is it a good library?
Informations about the package subset-finder
SubsetFinder PHP Package
A powerful and flexible PHP package for efficiently finding subsets within collections based on quantity criteria. Built with Laravel collections and optimized for performance, memory efficiency, and developer experience.
Features
- High Performance: Optimized algorithms with configurable memory limits
- Flexible Configuration: Multiple configuration profiles for different use cases
- Performance Monitoring: Built-in metrics and logging capabilities
- Robust Error Handling: Comprehensive validation and meaningful error messages
- Type Safety: Full PHP 8.1+ type support with strict validation
- Comprehensive Testing: 100% test coverage with Pest PHP
- Laravel Integration: Service provider, facade, and trait support
- Memory Efficient: Optional lazy evaluation for large datasets
Installation
Laravel Integration
The package automatically registers with Laravel. If you need to publish the configuration:
Quick Start
Basic Usage
Using Configuration Profiles
Using the Facade
Using the Trait
Use Cases
E-commerce Bundle Creation
Inventory Management
Configuration
Environment Variables
Configuration File
Performance Monitoring
Error Handling
Testing
Performance Tips
- Use appropriate configuration profiles for your dataset size
- Enable lazy evaluation for large collections to reduce memory usage
- Monitor memory usage and adjust
max_memory_usage
accordingly - Use meaningful sort fields to optimize subset selection
- Consider batch processing for very large datasets
Advanced Usage
Custom Logging
Memory Management
Contributing
Contributions are welcome! Please see our Contributing Guide for details.
License
This package is open-sourced software licensed under the MIT License.
Support
- Documentation: GitHub Wiki
- Issues: GitHub Issues
- Discussions: GitHub Discussions
Roadmap
✅ Redis Caching Support
- High-performance caching with Redis integration
- Memory-based fallback when Redis is unavailable
- Smart cache key generation based on input data
- Configurable TTL and cache management
- Automatic fallback to memory cache on Redis failure
✅ Parallel Processing
- Multi-process subset finding for large datasets
- Intelligent chunking with optimal size calculation
- System-aware process limits based on CPU and memory
- Simulated parallel processing for development environments
- Performance metrics for parallel operations
✅ Weighted Subset Selection
- Multi-criteria optimization with configurable weights
- Advanced constraint handling (ranges, custom functions)
- Efficiency scoring and ranking algorithms
- Statistical analysis with quartiles and distributions
- Real-world optimization scenarios (e-commerce, inventory)
🔄 In Development
- [ ] Machine learning-based optimization
- [ ] GraphQL integration
- [ ] Performance benchmarking tools
- [ ] More configuration profiles
All versions of subset-finder with dependencies
PHP Build Version
Package Version
The package ozdemir/subset-finder contains the following files
Loading the files please wait ....