{"id":14971295,"url":"https://github.com/frostealth/yii2-array-field","last_synced_at":"2025-10-26T15:30:27.365Z","repository":{"id":34027146,"uuid":"37785960","full_name":"frostealth/yii2-array-field","owner":"frostealth","description":"Yii2 Array Field Behavior stores arrays in attributes","archived":false,"fork":false,"pushed_at":"2015-11-27T10:30:06.000Z","size":4,"stargazers_count":1,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-31T20:55:52.451Z","etag":null,"topics":["attributes","serialization","yii2","yii2-behaviors","yii2-extension"],"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/frostealth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-20T21:08:06.000Z","updated_at":"2020-11-14T14:39:44.000Z","dependencies_parsed_at":"2022-07-14T01:50:42.120Z","dependency_job_id":null,"html_url":"https://github.com/frostealth/yii2-array-field","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frostealth%2Fyii2-array-field","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frostealth%2Fyii2-array-field/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frostealth%2Fyii2-array-field/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frostealth%2Fyii2-array-field/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frostealth","download_url":"https://codeload.github.com/frostealth/yii2-array-field/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238347893,"owners_count":19457012,"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":["attributes","serialization","yii2","yii2-behaviors","yii2-extension"],"created_at":"2024-09-24T13:44:59.121Z","updated_at":"2025-10-26T15:30:22.007Z","avatar_url":"https://github.com/frostealth.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Yii2 Array Field Behavior\n\nThis Yii2 model behavior allows you to store arrays in attributes.\n\n## Installation\n\nRun the [Composer](http://getcomposer.org/download/) command to install the latest stable version:\n\n```\ncomposer require frostealth/yii2-array-field @stable\n```\n\n## Usage\n\nJust attach the behavior to your model.\n\n```php\nuse frostealth\\yii2\\behaviors\\ArrayFieldBehavior;\n\npublic function behaviors()\n{\n    return [\n        [\n            'class' =\u003e ArrayFieldBehavior::className(),\n            'attributes' =\u003e ['attribute1', 'attribute2'],\n            // 'defaultEncodedValue' =\u003e null,\n            // 'defaultDecodedValue' =\u003e [],\n        ],\n    ];\n}\n```\n\n## License\n\nThe MIT License (MIT).\nSee [LICENSE.md](https://github.com/frostealth/yii2-array-field/blob/master/LICENSE.md) for more information.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrostealth%2Fyii2-array-field","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrostealth%2Fyii2-array-field","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrostealth%2Fyii2-array-field/lists"}