daffidwilde / matching

A package for solving matching games
https://daffidwilde.github.io/matching/
MIT License
150 stars 42 forks source link

Use matching from php #99

Closed reinoud1957 closed 4 years ago

reinoud1957 commented 4 years ago

Is there an example using matching stable roommates from php
$output = exec( ./ stable_roommates.py) with a preference list?

daffidwilde commented 4 years ago

Hi there, @reinoud1957. Thanks for raising this issue but unfortunately the answer is no. Support for PHP is well beyond the scope of this library, and the purpose of matching is to provide a Python interface to the algorithms used for solving some matching games rather than an executable script as you desire.

I'm unsure of how you might import something from Python to PHP but I suspect your best bet is to write a script in Python that uses the StableRoommates class that executes as you require.

As I can't provide any further advice on this, I'll be closing the issue.