{"id":15282384,"url":"https://github.com/nullrefexcep/yii2-useful","last_synced_at":"2025-04-12T22:55:04.120Z","repository":{"id":21094195,"uuid":"24394217","full_name":"NullRefExcep/yii2-useful","owner":"NullRefExcep","description":"Yii 2 behaviors, traits and other useful stuff","archived":false,"fork":false,"pushed_at":"2020-05-03T22:14:19.000Z","size":42,"stargazers_count":6,"open_issues_count":2,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-12T22:55:01.008Z","etag":null,"topics":["php","yii2","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NullRefExcep.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}},"created_at":"2014-09-24T00:11:18.000Z","updated_at":"2022-02-23T05:18:29.000Z","dependencies_parsed_at":"2022-07-31T06:18:04.091Z","dependency_job_id":null,"html_url":"https://github.com/NullRefExcep/yii2-useful","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullRefExcep%2Fyii2-useful","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullRefExcep%2Fyii2-useful/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullRefExcep%2Fyii2-useful/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullRefExcep%2Fyii2-useful/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NullRefExcep","download_url":"https://codeload.github.com/NullRefExcep/yii2-useful/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248643049,"owners_count":21138353,"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":["php","yii2","yii2-extension"],"created_at":"2024-09-30T14:25:31.873Z","updated_at":"2025-04-12T22:55:04.101Z","avatar_url":"https://github.com/NullRefExcep.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Yii2-useful\n=====================\n[![Latest Stable Version](https://poser.pugx.org/nullref/yii2-useful/v/stable)](https://packagist.org/packages/nullref/yii2-useful) [![Total Downloads](https://poser.pugx.org/nullref/yii2-useful/downloads)](https://packagist.org/packages/nullref/yii2-useful) [![Latest Unstable Version](https://poser.pugx.org/nullref/yii2-useful/v/unstable)](https://packagist.org/packages/nullref/yii2-useful) [![License](https://poser.pugx.org/nullref/yii2-useful/license)](https://packagist.org/packages/nullref/yii2-useful)\n\n\nCollection helpful classes for Yii2\n\n## Installation\n```bash\ncomposer require nullref/yii2-useful --prefer-dist\n```\n\n## Structure\n\n### Actions\n- #### EditAction\n    \n    Action for AJAX model update.\n\n- #### MultipleDeleteAction\n    \n    Allows to delete multiple models.\n\n- #### MultipleUpdateAction\n    \n    Allows to update multiple models.\n\n### Behaviors\n- #### BinaryBehavior\n    \n    Allows encode and decode model fields as integer number.\n\n- #### DateBehavior\n    Allows encode and decode model fields as Unix timestamp.\n\n- #### JsonBehavior\n\n    Allows encode and decode model fields as JSON.\n\n- #### RelatedBehavior\n\n    Allows to load related data for model.\n\n- #### SerializeBehavior\n\n    Allows encode and decode model fields as serialize php string.\n\n- #### TranslationBehavior\n\n    Allows to implement multilingual features.\n\n- #### CacheTagDependencyBehavior\n\n    Allows to invalidate TagDependency when modify ActiveRecord\n\n### Traits\n- #### GetDefinition\n\n    Allows to get defined in DI container class or default.\n\n- #### HasPassword\n    \n    Allows to set and validate password for model.\n\n- #### Mappable\n    \n    Allows to get map from ActiveRecord.\n    \n- #### MappableQuery\n\n    Same as Mappable trait but for ActiveQuery.\n    \n- #### SessionModel\n\n    Save and get object from session\n    \n### Filters\n- #### RedirectFilter\n    Redirect after action by url param.\n\n### Helpers\n- #### Memoize\n    \n    Class for calling memoized function or method.\n\n\n\n## Old version\n(Will be remove from version 1.0.0)\n\n### JSONBehavior\nAllows save in text field customs data structure.\n### ArrayBehavior\nAllows save in text field array structure.\n### BitBehavior\nAllows save in integer field bit array.\n### DropDownTrait\nAllows get lists from ActiveRecord.\n### PasswordTrait\nEasy work with password.\n### EditAction\nAction for AJAX record update.\n### MultipleUpdateAction\nAction multiple update by list of IDs.\n### TranslationBehavior\nAllows implement translations for models\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnullrefexcep%2Fyii2-useful","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnullrefexcep%2Fyii2-useful","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnullrefexcep%2Fyii2-useful/lists"}