<commit_before># sql2Entity
CLI PHP to convert a SQL create table statement to a Doctrine Entity class. Written to work with Laravel-Doctrine. May work outside of Laravel, but untested.<commit_msg>Update README to include instructions<commit_after># sql2Entity
CLI PHP to convert a SQL create table statement to a Doctrine Entity class. Written to work with Laravel-Doctrine. May work outside of Laravel, but untested.
### Use ###
1. Copy the files from this repo into any directory.
 
2. Copy the column creation bit of your SQL create table command - no need to include anything except the column and type definitions (see data.example)

3. Run teh command, from teh command line, by entering "php convertSQL.php". You will be prompted for the name of the file with your SQL command, and the name of your entity (Convention calls for the entity to have uppercase first letter)
  
4. Retrieve your entity from the generatedEntities directory.  
{'fraction_non_alphanumeric': 0.0455026455026455, 'fraction_numerical': 0.006349206349206349, 'mean_word_length': 4.436781609195402, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1129776', 'n_tokens_mistral': 236, 'n_tokens_neox': 233, 'n_words': 145}