{"id":43190422,"url":"https://github.com/jonaaix/eloquent-translatable","last_synced_at":"2026-02-01T04:38:30.116Z","repository":{"id":305591626,"uuid":"1023288582","full_name":"jonaaix/eloquent-translatable","owner":"jonaaix","description":"High performance translations for Laravel Eloquent models","archived":false,"fork":false,"pushed_at":"2025-07-31T15:01:58.000Z","size":865,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-11T21:14:54.481Z","etag":null,"topics":["eloquent","i18n","laravel","localization","performance","translation","translations"],"latest_commit_sha":null,"homepage":"https://jonaaix.github.io/eloquent-translatable/","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/jonaaix.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}},"created_at":"2025-07-20T23:28:31.000Z","updated_at":"2025-07-31T15:01:55.000Z","dependencies_parsed_at":"2025-07-21T01:25:54.052Z","dependency_job_id":"84872f64-bcb2-47ed-9550-86b06705c29e","html_url":"https://github.com/jonaaix/eloquent-translatable","commit_stats":null,"previous_names":["jonaaix/eloquent-translatable"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jonaaix/eloquent-translatable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonaaix%2Feloquent-translatable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonaaix%2Feloquent-translatable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonaaix%2Feloquent-translatable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonaaix%2Feloquent-translatable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonaaix","download_url":"https://codeload.github.com/jonaaix/eloquent-translatable/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonaaix%2Feloquent-translatable/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28968059,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T03:46:10.227Z","status":"ssl_error","status_checked_at":"2026-02-01T03:46:01.693Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["eloquent","i18n","laravel","localization","performance","translation","translations"],"created_at":"2026-02-01T04:38:29.324Z","updated_at":"2026-02-01T04:38:30.109Z","avatar_url":"https://github.com/jonaaix.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/jonaaix/eloquent-translatable\"\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/jonaaix/eloquent-translatable/main/docs/static/img/logo2.png\" alt=\"Laravel Eloquent Translatable Logo\" width=\"200\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eLaravel Eloquent Translatable\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\nHigh performance, developer-first translations for Laravel models.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://packagist.org/packages/aaix/eloquent-translatable\"\u003e\u003cimg src=\"https://img.shields.io/packagist/v/aaix/eloquent-translatable.svg?style=flat-square\" alt=\"Latest Version on Packagist\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://packagist.org/packages/aaix/eloquent-translatable\"\u003e\u003cimg src=\"https://img.shields.io/packagist/dt/aaix/eloquent-translatable.svg?style=flat-square\" alt=\"Total Downloads\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/jonaaix/eloquent-translatable/actions/workflows/tests.yml\"\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/jonaaix/eloquent-translatable/tests.yml?branch=main\u0026label=tests\u0026style=flat-square\" alt=\"GitHub Actions\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/jonaaix/eloquent-translatable/blob/main/LICENSE.md\"\u003e\u003cimg src=\"https://img.shields.io/packagist/l/aaix/eloquent-translatable.svg?style=flat-square\" alt=\"License\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n**Eloquent Translatable** is a Laravel package built for raw performance and a clean, focused developer experience. It uses\ndirect, indexed database queries instead of relying on JSON columns or complex Eloquent model hydration, making it significantly\nfast and memory-efficient.\n\n## Key Features\n\n- **✨ Intuitive API:** A clean, fluent, and predictable interface.\n- **🤝 Spatie-Compatible:** Optional API compatibility with `spatie/laravel-translatable`.\n- **🚀 Performance-First:** Designed for speed at scale. No Eloquent overhead, no JSON parsing.\n- **🔒 Secure by Default:** Explicitly define which attributes are translatable.\n- **⚙️ Artisan Command:** Scaffold translation migrations with a single command.\n- **🛡️ Enum-Powered:** Ships with a `Locale` enum for type-safe, readable code.\n\n## Documentation\n\nFor the full documentation, please visit our **[documentation website](https://jonaaix.github.io/eloquent-translatable)**.\n\n## Installation\n\nYou can install the package via Composer:\n\n```bash\ncomposer require aaix/eloquent-translatable\n```\n\n## Quick Example\n\n1. **Prepare your model:**\n\n   ```php\n   // app/Models/Product.php\n   namespace App\\Models;\n\n   use Aaix\\EloquentTranslatable\\Traits\\HasTranslations;\n   use Illuminate\\Database\\Eloquent\\Model;\n\n   class Product extends Model\n   {\n       use HasTranslations;\n\n       public array $translatable = ['name', 'description'];\n   }\n   ```\n\n2. **Store and access translations:**\n\n   ```php\n   use Aaix\\EloquentTranslatable\\Enums\\Locale;\n\n   $product = Product::create(['name' =\u003e 'My awesome product']);\n\n   // Store a translation\n   $product-\u003estoreTranslation('name', Locale::GERMAN, 'Mein tolles Produkt');\n\n   // Access it (will fall back to the app's locale)\n   app()-\u003esetLocale('de');\n   echo $product-\u003ename; // Output: Mein tolles Produkt\n\n   // Or get a specific locale\n   echo $product-\u003egetTranslation('name', Locale::GERMAN); // Output: Mein tolles Produkt\n   ```\n\n## Testing\n\nTo run the package's test suite, clone the repository and run:\n\n```bash\ncomposer install\ncomposer test\n```\n\n## Contributing\n\nContributions are welcome!\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonaaix%2Feloquent-translatable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonaaix%2Feloquent-translatable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonaaix%2Feloquent-translatable/lists"}