# yii2-serialized **Repository Path**: mivans/yii2-serialized ## Basic Information - **Project Name**: yii2-serialized - **Description**: εΊεˆ—εŒ– - **Primary Language**: PHP - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 4 - **Forks**: 1 - **Created**: 2015-12-28 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: utils **Tags**: None ## README Yii2 Serialized Attributes Behavior =================================== This Yii2 model behavior allows you to store arrays in attributes. To attach the behavior put the following code in your model: ```php public function behaviors() { return [ 'serializedAttributes' => [ 'class' => SerializedAttributes::className(), 'attributes' => ['serializedData', 'moreSerializedData'], // 'encode' => true, ], ]; } ```