{"id":18795375,"url":"https://github.com/duckthom/laravel-importer","last_synced_at":"2025-04-13T15:34:22.368Z","repository":{"id":62520304,"uuid":"82349568","full_name":"DuckThom/laravel-importer","owner":"DuckThom","description":"Extensible importer for Laravel","archived":false,"fork":false,"pushed_at":"2017-10-05T21:00:10.000Z","size":51,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T06:34:42.708Z","etag":null,"topics":["importer","laravel","laravel-package","laravel5-package","php7"],"latest_commit_sha":null,"homepage":"","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/DuckThom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-18T00:24:00.000Z","updated_at":"2022-02-12T08:01:02.000Z","dependencies_parsed_at":"2022-11-02T13:32:25.333Z","dependency_job_id":null,"html_url":"https://github.com/DuckThom/laravel-importer","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DuckThom%2Flaravel-importer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DuckThom%2Flaravel-importer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DuckThom%2Flaravel-importer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DuckThom%2Flaravel-importer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DuckThom","download_url":"https://codeload.github.com/DuckThom/laravel-importer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248736611,"owners_count":21153623,"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":["importer","laravel","laravel-package","laravel5-package","php7"],"created_at":"2024-11-07T21:33:44.176Z","updated_at":"2025-04-13T15:34:21.994Z","avatar_url":"https://github.com/DuckThom.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eLaravel Importer\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://packagist.org/packages/luna/laravel-importer\"\u003e\u003cimg src=\"https://poser.pugx.org/luna/laravel-importer/v/stable\" alt=\"Latest Stable Version\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/luna/laravel-importer\"\u003e\u003cimg src=\"https://poser.pugx.org/luna/laravel-importer/downloads\" alt=\"Total Downloads\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/luna/laravel-importer\"\u003e\u003cimg src=\"https://poser.pugx.org/luna/laravel-importer/v/unstable\" alt=\"Latest Unstable Version\"\u003e\u003c/a\u003e\n\u003ca href=\"https://styleci.io/repos/82349568\"\u003e\u003cimg src=\"https://styleci.io/repos/82349568/shield?branch=master\" alt=\"StyleCI\"\u003e\u003c/a\u003e\n\u003ca href=\"https://travis-ci.org/DuckThom/laravel-importer\"\u003e\u003cimg src=\"https://travis-ci.org/DuckThom/laravel-importer.svg?branch=master\" alt=\"TravisCI\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/luna/laravel-importer\"\u003e\u003cimg src=\"https://poser.pugx.org/luna/laravel-importer/license\" alt=\"License\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch3\u003e# Prerequisites\u003c/h3\u003e\n\nBefore using this package, make sure you are at least running PHP 7.0 and that you have Laravel 5.4.\n\n\u003ch3\u003e# Setup\u003c/h3\u003e\n\nFirst, add this package to your `composer.json`:\n\n```\n    composer require luna/laravel-importer \"~1.0\"\n```\n\nAdd the service provider and facade to `config/app.php`:\n\n```php\n    'providers' =\u003e [\n        // ...\n        // Package providers\n\n        Luna\\Importer\\ServiceProvider::class,\n    ],\n\n    'aliases' =\u003e [\n        // ...\n\n        \"Import\" =\u003e Luna\\Importer\\ImporterFacade::class\n    ]\n```\n\nPublish the configuration:\n\n```\n    php artisan vendor:publish --provider=\"Luna\\Importer\\ServiceProvider\"\n```\n\n\u003ch3\u003e# Features\u003c/h3\u003e\n\nThis plugin currently only comes with a CSV runner which means it is only able to parse CSV files out of the box. There will be more info on how to add runners added later.\n\n\u003ch3\u003e# Documentation\u003c/h3\u003e\n\nhttp://laravel-importer.readthedocs.io/en/latest/\n\n\u003ch3\u003e# Example configuration\u003c/h3\u003e\n\n`config/importer.php`:\n\n```php\nreturn [\n    /***********************************************************\n     * Importers are used for defining specific import tasks\n     * For instance, a ProductImporter could import a file with\n     * products into a table.\n     ***********************************************************/\n    'importers' =\u003e [\n        'default' =\u003e \\App\\Importers\\ProductImporter::class\n    ],\n\n    /***********************************************************\n     * Runners are used for looping through the file\n     * The default is a CSV runner which will loop though\n     * CSV files line-by-line. A runner uses an importer to get\n     * import specific settings like the model class.\n     ***********************************************************/\n    'runners' =\u003e [\n        'default' =\u003e \\Luna\\Importer\\Runners\\CsvRunner::class\n    ]\n];\n```\n\n\u003ch3\u003e# Contributing\u003c/h3\u003e\n\nPull requests for new features are welcome as long as they include tests for it as well.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduckthom%2Flaravel-importer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fduckthom%2Flaravel-importer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduckthom%2Flaravel-importer/lists"}