{"id":19689993,"url":"https://github.com/mikezange/laravel-encryptable","last_synced_at":"2026-05-16T09:35:24.289Z","repository":{"id":62528559,"uuid":"143149015","full_name":"mikezange/laravel-encryptable","owner":"mikezange","description":"A simple encryptable trait for encrypting model fields in laravel","archived":false,"fork":false,"pushed_at":"2018-08-22T14:47:59.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-13T19:03:11.359Z","etag":null,"topics":["data","encrypt","field","gdpr","laravel","model","trait"],"latest_commit_sha":null,"homepage":null,"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/mikezange.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":"2018-08-01T11:49:26.000Z","updated_at":"2018-08-22T14:47:16.000Z","dependencies_parsed_at":"2022-11-02T15:31:22.088Z","dependency_job_id":null,"html_url":"https://github.com/mikezange/laravel-encryptable","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mikezange/laravel-encryptable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikezange%2Flaravel-encryptable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikezange%2Flaravel-encryptable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikezange%2Flaravel-encryptable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikezange%2Flaravel-encryptable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikezange","download_url":"https://codeload.github.com/mikezange/laravel-encryptable/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikezange%2Flaravel-encryptable/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33097017,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"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":["data","encrypt","field","gdpr","laravel","model","trait"],"created_at":"2024-11-11T19:04:03.351Z","updated_at":"2026-05-16T09:35:24.269Z","avatar_url":"https://github.com/mikezange.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Description\nReusable trait for encrypting Laravel model fields.\n\n## Requirements\n\n- Any fields that are encryptable need to be changed to type \"text\" in the database, due to the encrypted data string being much longer than the original data.\n- `PHP \u003e=7.0`\n- `Laravel ~5.6`\n\n## Installation\n\n0. As always: back up your database - I am not responsible for any data loss\n\n1. Install the package via Composer: \n\n    `composer require mike-zange/laravel-encryptable`\n\n2. On your model add:\n\n    ```\n    use Encryptable;\n    \n    public $encryptable = [\n        'field_1',\n        'field_2',\n        'field_3',\n        'field_4'\n    ];\n    ```\n\nThe trait will take care of the rest","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikezange%2Flaravel-encryptable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikezange%2Flaravel-encryptable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikezange%2Flaravel-encryptable/lists"}