The link you provided in the comments does not contain a PHP file/library. It appears to be a Haskell library. This should point you in the right direction: https://www.leaseweb.com/labs/2013/04/stable-marriage-problem-in-php/
2
solved i’m serching a php code of the “stable marriage” [closed]