Overview
This PHP script takes a specifically formated TXT file and converts it into CSV, so that it can be imported into the Moxfield Collection feature.
Important to know
This script assume that all your cards are in English and will format the CSV file accordingly.
How the TXT file should be formatted
Example entry: 1 A Little Chat (snc) snc no 47
1 = Count / amount / number of the card
A Little Chat = Name of the card
(snc) = Set code of card with brackets - View full list
snc = Set code of card without brackets - View full list
no = Specify if the card is foil or not (Options: no / foil)
47 = Collector number of the card
It is very important to keep it in the above order and also to have one entry per line.
How to use
Prerequisites:
- PHP 7.4 or greater
Execute script:
- Download this repository as a ZIP file
- Install a local server environment like XAMPP or WAMP, or have access to an online hosting account.
- Extract the ZIP file into a folder on your local server environment or your online host.
- Inside of the folder you should have a TXT file called mtg-cards-list. You will need to edit this TXT file to include all the cards that you want to import into Moxfield's Collection section. (Please refer to the How the TXT file should be formated section above.)
- Type in the URL of the folder, using your browser of choice, and it should run the script.
- Once the script has run, you should see a Done message appear in your browser.
- Now go into the folder and you should see a file called import.csv. If don't, refresh the folder and it should appear.
- Take this import.csv file and import it into the Moxfield Collection section using their Import feature.