{"id":36981083,"url":"https://github.com/ayzerobug/laravel-external-references","last_synced_at":"2026-01-13T22:50:52.979Z","repository":{"id":239807166,"uuid":"800797309","full_name":"ayzerobug/laravel-external-references","owner":"ayzerobug","description":"Easy link Laravel Models with external references for seamless integration and enhanced functionality.","archived":false,"fork":false,"pushed_at":"2025-08-30T09:06:14.000Z","size":51,"stargazers_count":12,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-09-30T22:49:20.677Z","etag":null,"topics":["external","ids","laravel","reference"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/ayzerobug/laravel-external-references","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/ayzerobug.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","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},"funding":{"github":"Ayzerobug"}},"created_at":"2024-05-15T02:41:34.000Z","updated_at":"2025-08-30T09:06:11.000Z","dependencies_parsed_at":"2024-05-19T21:29:03.610Z","dependency_job_id":"d4a2fb49-7e70-4ece-be03-cfa16a8c9ee3","html_url":"https://github.com/ayzerobug/laravel-external-references","commit_stats":null,"previous_names":["ayzerobug/laravel-external-references"],"tags_count":9,"template":false,"template_full_name":"spatie/package-skeleton-laravel","purl":"pkg:github/ayzerobug/laravel-external-references","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayzerobug%2Flaravel-external-references","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayzerobug%2Flaravel-external-references/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayzerobug%2Flaravel-external-references/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayzerobug%2Flaravel-external-references/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ayzerobug","download_url":"https://codeload.github.com/ayzerobug/laravel-external-references/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayzerobug%2Flaravel-external-references/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28402161,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["external","ids","laravel","reference"],"created_at":"2026-01-13T22:50:52.916Z","updated_at":"2026-01-13T22:50:52.966Z","avatar_url":"https://github.com/ayzerobug.png","language":"PHP","funding_links":["https://github.com/sponsors/Ayzerobug"],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://banners.beyondco.de/Laravel%20External%20References.png?theme=dark\u0026packageManager=composer+require\u0026packageName=ayzerobug%2Flaravel-external-references\u0026pattern=plus\u0026style=style_1\u0026description=Easily+link+Laravel+Models+with+external+data+for+seamless+integration+and+enhanced+functionality.\u0026md=1\u0026showWatermark=0\u0026fontSize=100px\u0026images=https%3A%2F%2Flaravel.com%2Fimg%2Flogomark.min.svg\"/\u003e\n\n\n\n\n# Manage External References in Laravel\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/ayzerobug/laravel-external-references.svg?style=flat-square)](https://packagist.org/packages/ayzerobug/laravel-external-references)\n[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/ayzerobug/laravel-external-references/run-tests.yml?branch=main\u0026label=tests\u0026style=flat-square)](https://github.com/ayzerobug/laravel-external-references/actions?query=workflow%3Arun-tests+branch%3Amain)\n[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/ayzerobug/laravel-external-references/fix-php-code-style-issues.yml?branch=main\u0026label=code%20style\u0026style=flat-square)](https://github.com/ayzerobug/laravel-external-references/actions?query=workflow%3A\"Fix+PHP+code+style+issues\"+branch%3Amain)\n[![Total Downloads](https://img.shields.io/packagist/dt/ayzerobug/laravel-external-references.svg?style=flat-square)](https://packagist.org/packages/ayzerobug/laravel-external-references)\n\nThis package facilitates the seamless integration of your Laravel Models with external systems or services by managing external references or identifiers. It streamlines the process of associating your application's data with external datasets, such as payment processor IDs or user accounts. This enhancement enables the smooth integration of your application with diverse services and systems, thereby augmenting its capabilities and adaptability.\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require ayzerobug/laravel-external-references\n```\n\nYou can publish and run the migrations with:\n\n```bash\nphp artisan vendor:publish --tag=\"external-references-migrations\"\nphp artisan migrate\n```\n\nYou can publish the config file with:\n\n```bash\nphp artisan vendor:publish --tag=\"external-references-config\"\n```\n\n\u003c!-- Optionally, you can publish the views using\n\n```bash\nphp artisan vendor:publish --tag=\"laravel-external-references-views\"\n``` --\u003e\n\n## Usage\n\nInclude the HasExternalReferences trait in your model:\n\n```php\nnamespace App\\Models;\n\nuse Ayzerobug\\LaravelExternalReferences\\Traits\\HasExternalReferences;\n\nclass Payment extends Model\n{\n    use HasExternalReferences;\n\n    ...\n}\n\n```\n\nSet Payment External Reference:\n\n```php\nuse App\\Models\\Payment;\n\n$payment = Payment::find($id);\n$idOnPaystack = \"random-id\";\n$payment-\u003esetExternalReference($idOnPaystack, 'paystack');\n```\n\nGet the external Reference\n\n```php\nuse App\\Models\\Payment;\n\n$payment = Payment::find($id);\n$idOnPaystack = $payment-\u003egetExternalReference('paystack');\n```\n\nGet Payment with the external Reference\n\n```php\nuse App\\Models\\Payment;\n\n$idOnPaystack = \"random-id\";\n$payment = Payment::findByExternalReference($idOnPaystack, 'paystack');\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Security Vulnerabilities\n\nPlease review [our security policy](../../security/policy) on how to report security vulnerabilities.\n\n## Credits\n\n- [Ayomide Micheal](https://github.com/ayzerobug)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayzerobug%2Flaravel-external-references","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fayzerobug%2Flaravel-external-references","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayzerobug%2Flaravel-external-references/lists"}