{"id":19513417,"url":"https://github.com/escolalms/csv-users","last_synced_at":"2025-04-26T04:31:45.246Z","repository":{"id":41973109,"uuid":"438212200","full_name":"EscolaLMS/CSV-Users","owner":"EscolaLMS","description":"This package is responsible for exporting and importing users in .csv format","archived":false,"fork":false,"pushed_at":"2024-07-24T11:42:50.000Z","size":15357,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-16T22:25:37.140Z","etag":null,"topics":["api-rest","csv","laravel"],"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/EscolaLMS.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-14T10:35:29.000Z","updated_at":"2024-07-24T11:42:52.000Z","dependencies_parsed_at":"2022-08-12T01:01:15.477Z","dependency_job_id":"e059940e-74ac-4d07-8a41-482dac6d77dc","html_url":"https://github.com/EscolaLMS/CSV-Users","commit_stats":{"total_commits":29,"total_committers":10,"mean_commits":2.9,"dds":0.5172413793103448,"last_synced_commit":"301082858c1cae4be2d2d2c2e311bdfcc3dc4bc6"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EscolaLMS%2FCSV-Users","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EscolaLMS%2FCSV-Users/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EscolaLMS%2FCSV-Users/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EscolaLMS%2FCSV-Users/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EscolaLMS","download_url":"https://codeload.github.com/EscolaLMS/CSV-Users/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250931041,"owners_count":21509807,"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":["api-rest","csv","laravel"],"created_at":"2024-11-10T23:29:54.545Z","updated_at":"2025-04-26T04:31:44.447Z","avatar_url":"https://github.com/EscolaLMS.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CSV-Users\n\n[![swagger](https://img.shields.io/badge/documentation-swagger-green)](https://escolalms.github.io/CSV-Users/)\n[![codecov](https://codecov.io/gh/EscolaLMS/CSV-Users/branch/main/graph/badge.svg?token=NRAN4R8AGZ)](https://codecov.io/gh/EscolaLMS/CSV-Users)\n[![phpunit](https://github.com/EscolaLMS/CSV-Users/actions/workflows/test.yml/badge.svg)](https://github.com/EscolaLMS/CSV-Users/actions/workflows/test.yml)\n[![downloads](https://img.shields.io/packagist/dt/escolalms/CSV-Users)](https://packagist.org/packages/escolalms/CSV-Users)\n[![downloads](https://img.shields.io/packagist/v/escolalms/CSV-Users)](https://packagist.org/packages/escolalms/CSV-Users)\n[![downloads](https://img.shields.io/packagist/l/escolalms/CSV-Users)](https://packagist.org/packages/escolalms/CSV-Users)\n[![Maintainability](https://api.codeclimate.com/v1/badges/04a88ff03ede597fd18b/maintainability)](https://codeclimate.com/github/EscolaLMS/CSV-Users/maintainability)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/04a88ff03ede597fd18b/test_coverage)](https://codeclimate.com/github/EscolaLMS/CSV-Users/test_coverage)\n\n## What does it do\n\nThis package is used to export and import users in the `.csv` format. \n\n## Installation\n\n- `composer require escolalms/csv-users`\n- `php artisan db:seed --class=\"EscolaLms\\CsvUsers\\Database\\Seeders\\CsvUsersPermissionSeeder\"`\n\n## Example\n\n|id |name             |first_name|last_name|email             |country|is_active|created_at                 |onboarding_completed|email_verified|interests|avatar                                                         |roles    |permissions         |path_avatar           |contact |bio |\n|---|-----------------|----------|---------|------------------|-------|---------|---------------------------|--------------------|--------------|---------|---------------------------------------------------------------|---------|--------------------|----------------------|--------|----|\n|16 |Valentine Wehnner|Valentine |Wehnner  |jhyatt@example.net|Poland |         |2021-10-14T15:50:28.000000Z|TRUE                |TRUE          |LMS      |localhost/storage/avatars/16/logo.png                          |[\"tutor\"]|[\"access dashboard\"]|avatars/16/logo.png   |1234567 |bio |\n\n- Export uses fields from `EscolaLms\\Auth\\Http\\Resources\\UserFullResource`\n\n- Import uses the `update` or `create` method from `EscolaLms\\Auth\\Repositories\\Contracts\\UserRepositoryContract`.\nIf the email exists in the database, the user's data is updated. Otherwise, a new user is created.\n\n## Endpoints\n\nAll the endpoints are defined in [![swagger](https://img.shields.io/badge/documentation-swagger-green)](https://escolalms.github.io/CSV-Users/)\n\n## Tests\n\nRun `./vendor/bin/phpunit` to run tests. Test details\n[![codecov](https://codecov.io/gh/EscolaLMS/CSV-Users/branch/main/graph/badge.svg?token=NRAN4R8AGZ)](https://codecov.io/gh/EscolaLMS/CSV-Users)\n[![phpunit](https://github.com/EscolaLMS/CSV-Users/actions/workflows/test.yml/badge.svg)](https://github.com/EscolaLMS/CSV-Users/actions/workflows/test.yml)\n\n## Events \n\n- `EscolaLms\\CsvUsers\\Events\\EscolaLmsImportedNewUserTemplateEvent` =\u003e Event is dispatched after importing a new user.\n\n## How to use this on frontend\n\n### Admin panel\n\n**Import and export button**\n![Import / export button](docs/buttons.png \"Import / export button\")\n\n## Permissions\n\nPermissions are defined in [seeder](database/seeders/CsvUsersPermissionSeeder.php)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fescolalms%2Fcsv-users","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fescolalms%2Fcsv-users","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fescolalms%2Fcsv-users/lists"}