{"id":20098991,"url":"https://github.com/jream/phalcon-batch","last_synced_at":"2025-08-10T14:11:54.864Z","repository":{"id":14824521,"uuid":"17547220","full_name":"JREAM/phalcon-batch","owner":"JREAM","description":"Batch Insert Addition","archived":false,"fork":false,"pushed_at":"2014-03-08T17:46:43.000Z","size":132,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-01T10:43:14.489Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JREAM.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-03-08T17:41:13.000Z","updated_at":"2017-09-10T08:13:18.000Z","dependencies_parsed_at":"2022-09-25T04:22:23.752Z","dependency_job_id":null,"html_url":"https://github.com/JREAM/phalcon-batch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JREAM/phalcon-batch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JREAM%2Fphalcon-batch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JREAM%2Fphalcon-batch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JREAM%2Fphalcon-batch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JREAM%2Fphalcon-batch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JREAM","download_url":"https://codeload.github.com/JREAM/phalcon-batch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JREAM%2Fphalcon-batch/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269734149,"owners_count":24466554,"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","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-13T17:07:35.298Z","updated_at":"2025-08-10T14:11:54.824Z","avatar_url":"https://github.com/JREAM.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Phalcon Batch\n=============\n\nThis is a simple addition to allow batch MySQL INSERT, and MySQL IGNORE INSERT.\n\n## Install\nI prefer to use a BaseController whereby all my controllers extend. I also do this\nwith a BaseModel, but I would suggest placing this in the BaseController.\n\n    \u003c?php\n    // BaseController.php\n    class BaseController extends \\Phalcon\\Mvc\\Controller\n    {\n\n\n    \u003c?php\n    TestController.php\n    class TestController extends \\BaseController\n    {\n\nInside **BaseController.php** append or include the **Batch.php** content.\nThen use the Batch in any controller.\n\n\n        \u003c?php\n        $batch = new Batch('user_notification');\n        $batch-\u003esetRows(['user_id', 'notification_id'])\n                -\u003esetValues([\n                    [23,1],\n                    [24,1],\n                    [25,1],\n                    [26,1],\n                    [27,1],\n                    [28,1],\n                    [29,1],\n                    [30,1],\n            ])-\u003einsert();\n\nThis could also be a user component if you wanted.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjream%2Fphalcon-batch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjream%2Fphalcon-batch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjream%2Fphalcon-batch/lists"}