{"id":27935597,"url":"https://github.com/veiliglanceren-nl/laravel-github-file","last_synced_at":"2026-03-15T22:45:57.490Z","repository":{"id":290364496,"uuid":"974188158","full_name":"VeiligLanceren-nl/laravel-github-file","owner":"VeiligLanceren-nl","description":"Laravel package to fetch and manage files from GitHub repositories.","archived":false,"fork":false,"pushed_at":"2025-06-08T10:26:53.000Z","size":131,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-13T21:59:44.417Z","etag":null,"topics":["file-download","github","github-api","github-files","github-integration","laravel","laravel-files","laravel-package","laravel-utilities","php","remote-files","zip"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VeiligLanceren-nl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-04-28T11:45:57.000Z","updated_at":"2025-06-08T10:26:35.000Z","dependencies_parsed_at":"2025-09-10T12:32:40.659Z","dependency_job_id":null,"html_url":"https://github.com/VeiligLanceren-nl/laravel-github-file","commit_stats":null,"previous_names":["veiliglanceren-nl/laravel-github-file"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/VeiligLanceren-nl/laravel-github-file","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VeiligLanceren-nl%2Flaravel-github-file","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VeiligLanceren-nl%2Flaravel-github-file/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VeiligLanceren-nl%2Flaravel-github-file/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VeiligLanceren-nl%2Flaravel-github-file/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VeiligLanceren-nl","download_url":"https://codeload.github.com/VeiligLanceren-nl/laravel-github-file/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VeiligLanceren-nl%2Flaravel-github-file/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274462746,"owners_count":25290112,"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","status":"online","status_checked_at":"2025-09-10T02:00:12.551Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["file-download","github","github-api","github-files","github-integration","laravel","laravel-files","laravel-package","laravel-utilities","php","remote-files","zip"],"created_at":"2025-05-07T06:49:47.424Z","updated_at":"2026-03-15T22:45:57.419Z","avatar_url":"https://github.com/VeiligLanceren-nl.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Veilig Lanceren](/veilig-lanceren-logo.png)\n\nThis package is maintained by [VeiligLanceren.nl](https://veiliglanceren.nl), your partner in website development and everything else to power up your online company.\n\n# Laravel Github File\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/veiliglanceren/laravel-github-file.svg?style=flat-square)](https://packagist.org/packages/veiliglanceren/laravel-remote-documentation)\n[![Total Downloads](https://img.shields.io/packagist/dt/veiliglanceren/laravel-github-file.svg?style=flat-square)](https://packagist.org/packages/veiliglanceren/laravel-remote-documentation)\n[![License](https://img.shields.io/packagist/l/veiliglanceren/laravel-github-file.svg?style=flat-square)](LICENSE)\n\n# Laravel GitHub File\n\nA Laravel package to fetch, download, and zip files from GitHub repositories.\n\n## Installation\n\nInstall the package via Composer:\n\n```bash\ncomposer require veiliglanceren/laravel-github-file\n```\n\n## Configuration\n\nPublish the configuration file (optional):\n\n```bash\nphp artisan vendor:publish --provider=\"VeiligLanceren\\GithubFile\\GithubFileServiceProvider\"\n```\n\nThis will create a `config/github-file.php` file where you can customize settings like the default disk.\n\n## Usage\n\n### Fetch File Content\n\nRetrieve the content of a file from a GitHub repository:\n\n```php\nuse VeiligLanceren\\GithubFile\\Facades\\GithubFile;\n\n$content = GithubFile::get('owner/repo', 'path/to/file.txt');\n```\n\n### Download a File\n\nDownload a file and store it locally:\n\n```php\n$path = GithubFile::download('owner/repo', 'path/to/file.txt');\n```\n\nThis will store the file in the default disk's `downloads` directory.\n\n### Create a ZIP Archive\n\nCreate a ZIP archive containing a file from a GitHub repository:\n\n```php\n$zipPath = GithubFile::zip('owner/repo', 'path/to/file.txt');\n```\n\nThe ZIP file will be stored in the default disk's `zips` directory. Or zip multiple files at the same times.\n\n```php\n$zipPath = GithubFile::zip('owner/repo', ['path/to/file.txt', 'path/to/file2.txt']);\n```\n\n## Testing\n\nRun the tests using Pest:\n\n```bash\n./vendor/bin/pest\n```\n\nEnsure that your environment is set up correctly and that all dependencies are installed.\n\n## Contributing\n\nContributions are welcome! Please follow these steps:\n\n1. Fork the repository.\n2. Create a new branch (`git checkout -b feature-branch`).\n3. Make your changes.\n4. Commit your changes (`git commit -am 'Add new feature'`).\n5. Push to the branch (`git push origin feature-branch`).\n6. Create a new Pull Request.\n\nPlease ensure that your code adheres to the project's coding standards and passes all tests.\n\n## License\n\nThis package is open-source software licensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fveiliglanceren-nl%2Flaravel-github-file","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fveiliglanceren-nl%2Flaravel-github-file","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fveiliglanceren-nl%2Flaravel-github-file/lists"}