{"id":15023691,"url":"https://github.com/goragodwiriya/api","last_synced_at":"2026-02-14T05:05:00.197Z","repository":{"id":99565580,"uuid":"312553701","full_name":"goragodwiriya/api","owner":"goragodwiriya","description":"ตัวอย่างการใช้งาน API ด้วย Kotchasan","archived":false,"fork":false,"pushed_at":"2020-11-18T02:00:11.000Z","size":256,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-03T04:46:58.354Z","etag":null,"topics":["api","framework","kotchasan","mmvc","mvc","php56","php7"],"latest_commit_sha":null,"homepage":"https://kotchasan.com/index.php?module=knowledge\u0026id=116","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/goragodwiriya.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-13T11:13:04.000Z","updated_at":"2021-12-15T09:57:00.000Z","dependencies_parsed_at":"2023-07-30T22:02:00.074Z","dependency_job_id":null,"html_url":"https://github.com/goragodwiriya/api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/goragodwiriya/api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goragodwiriya%2Fapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goragodwiriya%2Fapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goragodwiriya%2Fapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goragodwiriya%2Fapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/goragodwiriya","download_url":"https://codeload.github.com/goragodwiriya/api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goragodwiriya%2Fapi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274968606,"owners_count":25383113,"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-09-13T02:00:10.085Z","response_time":70,"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":["api","framework","kotchasan","mmvc","mvc","php56","php7"],"created_at":"2024-09-24T19:59:20.476Z","updated_at":"2026-02-14T05:04:55.179Z","avatar_url":"https://github.com/goragodwiriya.png","language":"PHP","readme":"# API by Kotchasan\n\nจุดเด่นของ Kotchasan อย่างหนึ่งคือความเร็ว ทำให้การนำ Kotchasan ไปใช้งานเป็น API สามารถทำได้ดีที่สุด เนื่องจากจะทำให้ API สามารถรับจำนวน Request ได้มากกว่า แถมการเขียนโค้ดของ Kotchasan เพื่อใช้งานเป็น API ยังง่ายดายอีกด้วย\n\nรายละเอียดเพิ่มเติม https://www.kotchasan.com/index.php?module=knowledge\u0026id=116\n\n## ความต้องการของระบบ\n\n- PHP 5.3 ขึ้นไป\n- ext-mbstring\n- PDO Mysql\n\n## การติดตั้งและการอัปเกรด\n\nก่อนทดสอบตัวอย่างนี้ต้องทำการติดตั้งก่อนนะครับ เนื่องจากมีส่วนที่เชื่อมต่อกับฐานข้อมูล\n1.  ให้อัปโหลดโค้ดทั้งหมดจากที่ดาวน์โหลด ขึ้นไปบน Server\n2.  เรียกตัวติดตั้ง http://domain.tld/install/ (เปลี่ยน domain.tld เป็นโดเมนรวมพาธที่ทำการติดตั้งไว้) และดำเนินการตามขั้นตอนการติดตั้งหรืออัปเกรดจนกว่าจะเสร็จสิ้น\n3.  ลบไดเร็คทอรี่ install/ ออก\n\nพบปัญหาการติดตั้ง แนะนำอ่านกระทู้นี้ก่อน https://www.kotchasan.com/forum.html?wbid=3809\n\n## การใช้งาน\n\n- domain.tld/api.php/v1/user/login ตัวอย่างตรวจสอบ Username และ Password ของฐานข้อมูล API และคืนค่า Refresh Token สำหรับการนำไปใช้งานต่อ\n- domain.tld/api.php/v1/user/me ตัวอย่างสำหรับการอ่านข้อมูลส่วนตัวโดยใช้ Refresh Token ที่ได้จากการ login\n- ทดสอบเรียกใช้งาน API ได้ที่ domain.tld/index.php ถ้าสำเร็จ จะแสดง username และ ชื่อของคนที่ login ออกมา\n\n## ข้อตกลงการนำไปใช้งาน\n\n- สามารถนำไปใช้งานส่วนตัวและสามารถพัฒนาต่อยอดได้\n- สามารถนำระบบที่พัฒนาต่อยอดแล้วไป จำหน่าย จ่าย แจก ได้ โดยไม่ต้องแจ้งให้ผู้เขียนทราบ และด้วยสิทธิ์ของตัวเอง\n- มีข้อสงสัยสามารถสอบถามได้ที่บอร์ดของคชสาร https://www.kotchasan.com\n- ผู้เขียนไม่รับผิดชอบข้อผิดพลาดใดๆในการใช้งาน\n\n## หากต้องการสนับสนุนผู้เขียน สามารถบริจาคช่วยเหลือค่า Server ได้ที่\n\n```\nธนาคาร กสิกรไทย สาขากาญจนบุรี\nเลขที่บัญชี 221-2-78341-5\nชื่อบัญชี กรกฎ วิริยะ\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoragodwiriya%2Fapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoragodwiriya%2Fapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoragodwiriya%2Fapi/lists"}