{"id":13824755,"url":"https://github.com/sadapon2008/mysql_collate","last_synced_at":"2026-01-10T16:00:11.816Z","repository":{"id":27566441,"uuid":"31048636","full_name":"sadapon2008/mysql_collate","owner":"sadapon2008","description":null,"archived":false,"fork":false,"pushed_at":"2017-01-26T10:39:36.000Z","size":2,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-20T02:36:30.486Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/sadapon2008.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":"2015-02-20T02:51:47.000Z","updated_at":"2019-09-30T03:24:53.000Z","dependencies_parsed_at":"2022-08-01T11:07:32.131Z","dependency_job_id":null,"html_url":"https://github.com/sadapon2008/mysql_collate","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/sadapon2008/mysql_collate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sadapon2008%2Fmysql_collate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sadapon2008%2Fmysql_collate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sadapon2008%2Fmysql_collate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sadapon2008%2Fmysql_collate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sadapon2008","download_url":"https://codeload.github.com/sadapon2008/mysql_collate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sadapon2008%2Fmysql_collate/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264334176,"owners_count":23592374,"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":[],"created_at":"2024-08-04T09:01:08.748Z","updated_at":"2026-01-10T16:00:09.360Z","avatar_url":"https://github.com/sadapon2008.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"# MysqlCollate\n\nMysql datasource for CakePHP 2.x supporting COLLATE in conditions.\n\n## Example\n\n### 1. change datasource in database.php\n\n```php\npublic $default = array(\n    'datasource' =\u003e 'MysqlCollate.Database/MysqlCollate',\n    'persistent' =\u003e false,\n    'host' =\u003e 'localhost',\n    'port' =\u003e '',\n    'login' =\u003e 'cakeBlog',\n    'password' =\u003e 'c4k3-rUl3Z',\n    'database' =\u003e 'cake_blog_tutorial',\n    'schema' =\u003e '',\n    'prefix' =\u003e '',\n    'encoding' =\u003e 'utf8'\n);\n```\n\n### 2. load MysqlCollateBehavior before Model::find()\n\n```php\n$options = array(\n    'condition' = array(\n        'Post.title LIKE' =\u003e 'aBcD',\n    ),\n    'order' =\u003e array(\n        'Post.id' =\u003e 'ASC',\n    ),\n);\n\n$this-\u003ePost-\u003eBehaviors-\u003eload(\n    'MysqlCollate.MysqlCollate',\n    array(\n      'Post.title' =\u003e 'utf8_unicode_ci',\n    )\n);\n\n$result = $this-\u003ePost-\u003efind('all', $options);\n\n$this-\u003ePost-\u003eBehaviors-\u003eunload('MysqlCollate');\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsadapon2008%2Fmysql_collate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsadapon2008%2Fmysql_collate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsadapon2008%2Fmysql_collate/lists"}