{"id":14975121,"url":"https://github.com/liberu-genealogy/php-dna","last_synced_at":"2025-04-11T01:20:25.401Z","repository":{"id":165323624,"uuid":"640654817","full_name":"liberu-genealogy/php-dna","owner":"liberu-genealogy","description":"DNA processing and manipulating for PHP 8.3 ","archived":false,"fork":false,"pushed_at":"2024-08-17T09:12:49.000Z","size":727,"stargazers_count":31,"open_issues_count":0,"forks_count":23,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-20T05:05:18.015Z","etag":null,"topics":["dna","dna-processing","laravel","laravel10","php","php8"],"latest_commit_sha":null,"homepage":"https://www.liberu.co.uk","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/liberu-genealogy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"liberu-genealogy"}},"created_at":"2023-05-14T19:48:04.000Z","updated_at":"2024-08-17T09:12:53.000Z","dependencies_parsed_at":"2023-10-16T03:31:30.395Z","dependency_job_id":"cc35df3a-1dba-42e1-a3e0-1df8e6e6d83a","html_url":"https://github.com/liberu-genealogy/php-dna","commit_stats":{"total_commits":351,"total_committers":5,"mean_commits":70.2,"dds":0.584045584045584,"last_synced_commit":"19ce472ff3ab024856236105ac5cb7c76ef122ee"},"previous_names":["liberu-genealogy/php-dna"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liberu-genealogy%2Fphp-dna","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liberu-genealogy%2Fphp-dna/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liberu-genealogy%2Fphp-dna/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liberu-genealogy%2Fphp-dna/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liberu-genealogy","download_url":"https://codeload.github.com/liberu-genealogy/php-dna/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248323101,"owners_count":21084437,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dna","dna-processing","laravel","laravel10","php","php8"],"created_at":"2024-09-24T13:51:32.800Z","updated_at":"2025-04-11T01:20:25.390Z","avatar_url":"https://github.com/liberu-genealogy.png","language":"PHP","funding_links":["https://github.com/sponsors/liberu-genealogy"],"categories":[],"sub_categories":[],"readme":"# php-dna\n\n## Running MatchKits from the Command Line\n\nTo run the MatchKits script from the command line, navigate to the root directory of the php-dna project.\n\nEnsure you have PHP installed on your system. You can check this by running `php -v` in your command line. If PHP is not installed, please install it from the official PHP website.\n\nExecute the script by running the following command: `php src/MatchKits.php`.\n\nThe script will prompt you to enter the file paths for Kit 1 and Kit 2. Please enter the full path for each file when prompted.\n\nAfter entering the file paths, the script will process the data and generate a matched data visualization. The output file named 'matched_data.png' will be saved in the root directory.\n\n## Requirements\n\n* php-dna 1.0+ requires PHP 8.3 (or later).\n* php-dna 2.0+ requires PHP 8.4 (or later).\n\n## Installation\n\nThere are two ways of installing php-dna.\n\n### Composer\n\nTo install php-dna in your project using composer, simply add the following require line to your project's `composer.json` file:\n\n    {\n        \"require\": {\n            \"liberu-genealogy/php-dna\": \"1.0.*\"\n        }\n    }\n\n### Download and __autoload\n\nIf you are not using composer, you can download an archive of the source from GitHub and extract it into your project. You'll need to setup an autoloader for the files, unless you go through the painstaking process if requiring all the needed files one-by-one. Something like the following should suffice:\n\n```php\nspl_autoload_register(function ($class) {\n    $pathToDna = __DIR__ . '/library/'; // TODO FIXME\n\n    if (!substr(ltrim($class, '\\\\'), 0, 7) == 'Dna\\\\') {\n        return;\n    }\n\n    $class = str_replace('\\\\', DIRECTORY_SEPARATOR, $class) . '.php';\n    if (file_exists($pathToDna . $class)) {\n        require_once($pathToDna . $class);\n    }\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliberu-genealogy%2Fphp-dna","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliberu-genealogy%2Fphp-dna","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliberu-genealogy%2Fphp-dna/lists"}