{"id":15024203,"url":"https://github.com/goragodwiriya/oas","last_synced_at":"2025-10-12T01:31:59.733Z","repository":{"id":99565813,"uuid":"103885797","full_name":"goragodwiriya/oas","owner":"goragodwiriya","description":"ระบบบัญชีออนไลน์ Online Accounting System (OAS)","archived":false,"fork":false,"pushed_at":"2025-03-16T11:41:00.000Z","size":1718,"stargazers_count":59,"open_issues_count":0,"forks_count":52,"subscribers_count":13,"default_branch":"main","last_synced_at":"2025-05-26T10:18:37.610Z","etag":null,"topics":["kotchasan","php-framework","php56","php7","php8"],"latest_commit_sha":null,"homepage":"https://kotchasan.com/index.php?module=knowledge\u0026id=90","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,"zenodo":null}},"created_at":"2017-09-18T03:14:58.000Z","updated_at":"2025-04-14T14:19:07.000Z","dependencies_parsed_at":"2023-07-30T22:00:11.399Z","dependency_job_id":"47204c66-9dd3-4e13-92b1-8d9fcebb03c6","html_url":"https://github.com/goragodwiriya/oas","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/goragodwiriya/oas","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goragodwiriya%2Foas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goragodwiriya%2Foas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goragodwiriya%2Foas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goragodwiriya%2Foas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/goragodwiriya","download_url":"https://codeload.github.com/goragodwiriya/oas/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goragodwiriya%2Foas/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279009768,"owners_count":26084648,"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-10-11T02:00:06.511Z","response_time":55,"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":["kotchasan","php-framework","php56","php7","php8"],"created_at":"2024-09-24T19:59:56.857Z","updated_at":"2025-10-12T01:31:59.204Z","avatar_url":"https://github.com/goragodwiriya.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ระบบบัญชีออนไลน์ Online Accounting System (OAS)\n\nเป็นระบบบัญชีออนไลน์ ที่สร้างจาก Kotchasan Web Framework มีความสามารถในการ จัดการสต๊อกสินค้า\nทำรายการ ซื้อ ขาย ออกใบเสร็จรับเงิน และ รายงานยอดขาย\n\nรายละเอียดเพิ่มเติม https://www.kotchasan.com/index.php?module=knowledge\u0026id=90\n\n## ความต้องการของระบบ\n\n- PHP 5.6 ขึ้นไป\n- ext-mbstring\n- PDO Mysql\n\n## การติดตั้งและการอัปเกรด\n\n1.  ให้อัปโหลดโค้ดทั้งหมดจากที่ดาวน์โหลด ขึ้นไปบน Server\n2.  เรียกตัวติดตั้ง http://domain.tld/install/ (เปลี่ยน domain.tld เป็นโดเมนรวมพาธที่ทำการติดตั้งไว้) และดำเนินการตามขั้นตอนการติดตั้งหรืออัปเกรดจนกว่าจะเสร็จสิ้น\n3.  ลบไดเร็คทอรี่ install/ ออก\n\n## การใช้งาน\n\n- เข้าระบบเป็นผู้ดูแลระบบ : `admin@localhost` และ Password : `admin`\n- เข้าระบบเป็นพนักงาน : `demo@localhost` และ Password : `demo`\n\n## API\n\nคือการขอข้อมูลรายละเอียดของสินค้าที่มีอยู่ในระบบผ่าน RESTApi คืนค่าเป็นฟอร์แมต JSON สามารถนำไปใช้เชื่อมต่อกับระบบหน้าร้านค้าได้\n\n- api.php/v1/product/categories หมวดหมู่ของสินค้าทั้งหมด\n- api.php/v1/product/products/\u003ccategory_id\u003e/\u003cpage\u003e รายการสินค้าตามหมวดหมู่ที่เลือก (category_id) แบบแบ่งหน้า คราวละ 30 รายการ และหน้าที่เลือก (page)\n- api.php/v1/product/get/\u003cid\u003e ข้อมูลสินค้ารายการที่เลือก (id)\n- api.php/v1/product/search/\u003cq\u003e/\u003cpage\u003e ค้นหาสินค้าจาก q แสดงหน้าที่เลือก (page) (ถ้าไม่ระบุหน้าจะแสดงหน้าแรก)\n\nในการใช้งาน API หากเป็นการเรียกใช้งานจากนอก Server อาจต้องเปิดการใช้งาน Access-Control-Allow-Origin ด้วย โดยการสร้างไฟล์ .htaccess (หรือถ้ามีอยู่แล้วให้เปิดไฟล์มาแก้ไข) โดยการใส่โค้ดเหล่านี้ลงไป\n\n```\nRewriteEngine On\n\n# Cross domain access for API\nHeader add Access-Control-Allow-Origin \"*\"\nHeader add Access-Control-Allow-Headers \"origin, x-requested-with, content-type\"\nHeader add Access-Control-Allow-Methods \"PUT, GET, POST, DELETE, OPTIONS\"\n\nRewriteCond %{REQUEST_FILENAME} !-f\nRewriteRule ^(.*)$ index.php [QSA,L]\n```\n\n## ข้อตกลงการนำไปใช้งาน\n\n- สามารถนำไปใช้งานส่วนตัวได้\n- สามารถพัฒนาต่อยอดได้\n- มีข้อสงสัยสามารถสอบถามได้ที่บอร์ดของคชสาร https://www.kotchasan.com\n- ต้องการให้ผู้เขียนพัฒนาเพิ่มเติม ติดต่อผู้เขียนได้โดยตรง (อาจมีค่าใช้จ่าย)\n- ผู้เขียนไม่รับผิดชอบข้อผิดพลาดใดๆในการใช้งาน\n- ห้ามขาย ถ้าต้องการนำไปพัฒนาต่อเพื่อขายให้ติดต่อผู้เขียนก่อน (เพื่อบริจาค)\n\n## หากต้องการสนับสนุนผู้เขียน สามารถบริจาคช่วยเหลือค่า Server ได้ที่\n\n```\nธนาคาร กสิกรไทย สาขากาญจนบุรี\nเลขที่บัญชี 221-2-78341-5\nชื่อบัญชี กรกฎ วิริยะ\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoragodwiriya%2Foas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoragodwiriya%2Foas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoragodwiriya%2Foas/lists"}