PHP Classes

Partial PHP Intersection Between Two Arrays or More Sets of Values: Get the values that multiple arrays have in common

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 45 All time: 10,795 This week: 129Up
Version License PHP version Categories
partial-intersection 1.0MIT/X Consortium ...7.1Algorithms, Artificial intelligence, P...
Description 

Author

This package can get the values that multiple arrays have in common.

It provides several classes that can process two or more sets of values and return the intersection of those sets by determining their common values.

Currently, the package provides classes to:

- Get the common values in arrays of integers

- Get the common values in arrays of integers by iterating the list of integer values using a generator to return one value at a time

- Get the common values in arrays of mixed-type values by iterating the list of integer values using a generator to return one value at a time

- Get the common values in sets of values by iterating the list of integer values using a generator to return one value at a time

Innovation Award
PHP Programming Innovation award nominee
May 2023
Number 6
Some applications need to analyze different sets of values to find what they have in common.

This is the case with artificial intelligence applications that try to find patterns they can recognize to compare with situations they detected in the past and help those application users make good decisions based on the ways they found.

This package can analyze multiple sets of values to find the deals all groups have in common.

The package provides classes that use PHP generators and iterator interfaces, so developers that use this package can process the intersection results in one value at a time.

Manuel Lemos
Picture of Smoren  Freelight
  Performance   Level  
Name: Smoren Freelight <contact>
Classes: 38 packages by
Country: Russian Federation Russian Federation
Age: 35
All time rank: 280978 in Russian Federation Russian Federation
Week rank: 49 Up7 in Russian Federation Russian Federation Up
Innovation award
Innovation award
Nominee: 16x

  Files folder image Files (33)  
File Role Description
Files folder image.github (1 directory)
Files folder imagedocs (1 directory)
Files folder imagesrc (4 files, 1 directory)
Files folder imagetests (3 files, 2 directories)
Accessible without login Plain text file .scrutinizer.yml Data Auxiliary data
Accessible without login Plain text file codeception.yml Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file phpcs.xml Data Auxiliary data
Accessible without login Plain text file phpstan.neon Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files (33)  /  .github  
File Role Description
Files folder imageworkflows (1 file)

  Files folder image Files (33)  /  .github  /  workflows  
File Role Description
  Accessible without login Plain text file test_master.yml Data Auxiliary data

  Files folder image Files (33)  /  docs  
File Role Description
Files folder imageimages (5 files)

  Files folder image Files (33)  /  docs  /  images  
File Role Description
  Accessible without login Image file 1.png Data Auxiliary data
  Accessible without login Image file 2.png Data Auxiliary data
  Accessible without login Image file 3.png Data Auxiliary data
  Accessible without login Image file 4.png Data Auxiliary data
  Accessible without login Image file 5.png Data Auxiliary data

  Files folder image Files (33)  /  src  
File Role Description
Files folder imageUtil (5 files)
  Plain text file IntegerSetArrayImplementation.php Class Class source
  Plain text file IntegerSetIterableImplementation.php Class Class source
  Plain text file MixedSetIterableImplementation.php Class Class source
  Plain text file MultisetIterableImplementation.php Class Class source

  Files folder image Files (33)  /  src  /  Util  
File Role Description
  Plain text file IteratorFactory.php Class Class source
  Plain text file JustifyMultipleIterator.php Class Class source
  Plain text file NoValueMonad.php Class Class source
  Plain text file UniqueExtractor.php Class Class source
  Plain text file UsageMap.php Class Class source

  Files folder image Files (33)  /  tests  
File Role Description
Files folder imageunit (4 files, 1 directory)
Files folder image_support (1 file)
  Accessible without login Plain text file coding_standard.xml Data Auxiliary data
  Accessible without login Plain text file unit.suite.yml Data Auxiliary data
  Accessible without login Plain text file _bootstrap.php Aux. Auxiliary script

  Files folder image Files (33)  /  tests  /  unit  
File Role Description
Files folder imageFixture (3 files)
  Plain text file IntegerSetArrayImplementationTest.php Class Class source
  Plain text file IntegerSetIterableImplementationTest.php Class Class source
  Plain text file MixedSetIterableImplementationTest.php Class Class source
  Plain text file MultisetIterableImplementationTest.php Class Class source

  Files folder image Files (33)  /  tests  /  unit  /  Fixture  
File Role Description
  Plain text file ArrayIteratorFixture.php Class Class source
  Plain text file GeneratorFixture.php Class Class source
  Plain text file IteratorAggregateFixture.php Class Class source

  Files folder image Files (33)  /  tests  /  _support  
File Role Description
  Plain text file UnitTester.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:45
This week:0
All time:10,795
This week:129Up