https://github.com/cgdsoftware/laravel-dna
Package to parse DNA kit files, and import them into Laravel
https://github.com/cgdsoftware/laravel-dna
dna dna-processing dna-sequencing php php-library php8
Last synced: 7 months ago
JSON representation
Package to parse DNA kit files, and import them into Laravel
- Host: GitHub
- URL: https://github.com/cgdsoftware/laravel-dna
- Owner: cgdsoftware
- License: mit
- Created: 2021-08-26T14:25:51.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-30T13:38:25.000Z (about 4 years ago)
- Last Synced: 2025-01-12T11:34:11.947Z (9 months ago)
- Topics: dna, dna-processing, dna-sequencing, php, php-library, php8
- Language: PHP
- Homepage: https://www.facebook.com/familytree365
- Size: 2.93 KB
- Stars: 4
- Watchers: 14
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DNA to Laravel Model
## Installation
```
composer require familytree365/laravel-dna
```## Usage
### via Command Line
```
php artisan dna:import /path/to/your/dna/file.dna
```### via Facade
```
use FamilyTree365\LaravelDna\Facades\DnaParserFacade;
$filename = '/path/to/your/dna/file.dna';
DnaParserFacade::parse($filename, true);
```### via Instantiation
```
use \FamilyTree365\LaravelDna\Utils\DnaParser;
$filename = '/path/to/your/dna/file.dna';
$parser = new DnaParser();
$parser->parse($filename, true);
```## Documentation
### `parse()` Method
The `parse()` method takes three parameters, `string $filename`, `bool $progressBar = false`
and `string $conn`
If you set `$progressBar` to true, a ProgressBar will be output to `php://stdout`, which is useful when you are calling
the parser from Artisan commands.## Contributing
Pull requests are welcome, as are issues.
## Contributors
## License
MIT License (see License.md). This means you must retain the copyright and permission notice is all copies, or
substantial portions of this software.