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 View files (33)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (1)    
Last Updated Ratings Unique User Downloads Download Rankings
2023-05-23 (3 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 40 All time: 10,702 This week: 125Up
Version License PHP version Categories
partial-intersection 1.0MIT/X Consortium ...7.1Algorithms, Artificial intelligence, P...
Description 

Author

Smoren


Contributor

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: 29 packages by
Country: Russian Federation Russian Federation
Innovation award
Innovation award
Nominee: 14x

  Files folder image Files  
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  /  .github  
File Role Description
Files folder imageworkflows (1 file)

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

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

  Files folder image Files  /  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  /  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  /  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  /  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  /  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  /  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  /  tests  /  _support  
File Role Description
  Plain text file UnitTester.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:40
This week:0
All time:10,702
This week:125Up