PHPackages                             cakesuit/metatable - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. cakesuit/metatable

ActiveCakephp-plugin[Framework](/categories/framework)

cakesuit/metatable
==================

Cakesuit/MetaTable plugin for CakePHP

0.1.3(8y ago)03MITPHP

Since Nov 20Pushed 8y ago1 watchersCompare

[ Source](https://github.com/CakeSuit/MetaTable)[ Packagist](https://packagist.org/packages/cakesuit/metatable)[ RSS](/packages/cakesuit-metatable/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (2)Versions (5)Used By (0)

Cakesuit/MetaTable plugin for CakePHP
=====================================

[](#cakesuitmetatable-plugin-for-cakephp)

Installation
------------

[](#installation)

You can install this plugin into your CakePHP application using [composer](http://getcomposer.org).

The recommended way to install composer packages is:

```
composer require Cakesuit/MetaTable

bin/cake plugin load Cakesuit/MetaTable

```

How to use it (for example)
---------------------------

[](#how-to-use-it-for-example)

Create table user:

```
CREATE table users (
    id int(11) auto_increment NOT NULL key,
    username varchar(20) NOT NULL,
    password varchar(60) NOT NULL,
);
```

Create a table meta for user

```
CREATE table meta_users (
  id int(11) auto_increment key NOT NULL,
  user_id int(11) NOT NULL,
  meta_key varchar(255) NOT NULL,
  meta_value TEXT NULL
);
```

Insert user row:

idusernamepassword1Cakesuit12345Insert user meta row:

idmeta\_keymeta\_valueuser\_id1age2612sexemale1Config UsersTable:

```
