{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/11308","repository_url":"https://api.github.com/repos/yiisoft/yii2","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/11308/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/11308/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/11308/events","html_url":"https://github.com/yiisoft/yii2/issues/11308","id":146804918,"number":11308,"title":"how to valid a integer length","user":{"login":"wozzup","id":1992406,"avatar_url":"https://avatars.githubusercontent.com/u/1992406?v=3","gravatar_id":"","url":"https://api.github.com/users/wozzup","html_url":"https://github.com/wozzup","followers_url":"https://api.github.com/users/wozzup/followers","following_url":"https://api.github.com/users/wozzup/following{/other_user}","gists_url":"https://api.github.com/users/wozzup/gists{/gist_id}","starred_url":"https://api.github.com/users/wozzup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wozzup/subscriptions","organizations_url":"https://api.github.com/users/wozzup/orgs","repos_url":"https://api.github.com/users/wozzup/repos","events_url":"https://api.github.com/users/wozzup/events{/privacy}","received_events_url":"https://api.github.com/users/wozzup/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yiisoft/yii2/labels/question","name":"question","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-08T03:36:57Z","updated_at":"2016-04-08T07:37:23Z","closed_at":null,"body":"it's the yii2 api have` length => 11` rule ?\r\n\r\n```\r\npublic function rules()\r\n{\r\n    return [\r\n        [['name','mobile','status'], 'required'],\r\n        // maybe to have a  length => 11 rule ?\r\n        ['mobile', 'integer', 'min' => 1, 'max' => 99],\r\n        ['email', 'email'],\r\n    ];\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/207276240","html_url":"https://github.com/yiisoft/yii2/issues/11308#issuecomment-207276240","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/11308","id":207276240,"user":{"login":"yii-bot","id":13490354,"avatar_url":"https://avatars.githubusercontent.com/u/13490354?v=3","gravatar_id":"","url":"https://api.github.com/users/yii-bot","html_url":"https://github.com/yii-bot","followers_url":"https://api.github.com/users/yii-bot/followers","following_url":"https://api.github.com/users/yii-bot/following{/other_user}","gists_url":"https://api.github.com/users/yii-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/yii-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yii-bot/subscriptions","organizations_url":"https://api.github.com/users/yii-bot/orgs","repos_url":"https://api.github.com/users/yii-bot/repos","events_url":"https://api.github.com/users/yii-bot/events{/privacy}","received_events_url":"https://api.github.com/users/yii-bot/received_events","type":"User","site_admin":false},"created_at":"2016-04-08T07:37:23Z","updated_at":"2016-04-08T07:37:23Z","body":"_This is an automated comment, triggered by adding the label `question`._\n\t\t\t\nPlease note, that the GitHub Issue Tracker is for bug reports and feature requests only.\n\nWe are happy to help you on the [support forum](http://www.yiiframework.com/forum/), on [IRC](http://www.yiiframework.com/chat/) (#yii on freenode), or [Gitter](https://gitter.im/yiisoft/yii2).\n\nPlease use one of the above mentioned resources to discuss the problem.\nIf the result of the discussion turns out that there really is a bug in the framework, feel free to\ncome back and provide information on how to reproduce the issue. This issue will be closed for now."}}