{"id":15023137,"url":"https://github.com/rsuppersahabatan/esc-pos","last_synced_at":"2025-10-24T22:07:21.157Z","repository":{"id":125866045,"uuid":"90585679","full_name":"rsuppersahabatan/ESC-POS","owner":"rsuppersahabatan","description":"Make your web application support direct printing!","archived":false,"fork":false,"pushed_at":"2024-08-07T02:33:04.000Z","size":631,"stargazers_count":16,"open_issues_count":0,"forks_count":17,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-23T21:51:53.429Z","etag":null,"topics":["cetak","codeigniter","epson","esc-pos","pendaftaran","php","php5","printer","tracer"],"latest_commit_sha":null,"homepage":"https://topidesta.my.id/library-esc-post-dicodeigniter-server-side-printing","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/rsuppersahabatan.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":"2017-05-08T04:14:58.000Z","updated_at":"2024-08-07T02:33:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"65a27eaf-b7f0-4983-b383-1e99f699396d","html_url":"https://github.com/rsuppersahabatan/ESC-POS","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsuppersahabatan%2FESC-POS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsuppersahabatan%2FESC-POS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsuppersahabatan%2FESC-POS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsuppersahabatan%2FESC-POS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rsuppersahabatan","download_url":"https://codeload.github.com/rsuppersahabatan/ESC-POS/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103914,"owners_count":21048245,"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":["cetak","codeigniter","epson","esc-pos","pendaftaran","php","php5","printer","tracer"],"created_at":"2024-09-24T19:58:45.869Z","updated_at":"2025-10-24T22:07:16.128Z","avatar_url":"https://github.com/rsuppersahabatan.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ESC-POS-CODEIGNITER\n\nORIGINAL FROM:\nhttps://github.com/mike42/escpos-php/tree/master\n\nSTEP:\n1. Download all files in this github or the source\n2. Put the folder of all Mike42 to third_party\n3. Create File in libraries folder, with EscPos.php\n4. And run!\n\nExample:\n\n~~~PHP\ntry {\n    // Enter the device file for your USB printer here\n    // You can check the tutorial here: https://mike42.me/blog/2015-03-getting-a-usb-receipt-printer-working-on-linux\n    $connector = new FilePrintConnector(\"/dev/usb/lp0\");\n    /* Print a \"Hello world\" receipt\" */\n    $printer = new Printer($connector);\n    $printer -\u003e text(\"Hello World!\\n\");\n    $printer -\u003e cut();\n    /* Close printer */\n    $printer -\u003e close();\n} catch (Exception $e) {\n    echo \"Couldn't print to this printer: \" . $e -\u003e getMessage() . \"\\n\";\n}\n~~~\n\nMore: https://mike42.me/blog/2015-03-getting-a-usb-receipt-printer-working-on-linux\n\nNotes: \n1. Login as Root\n2. Write: chown -R user:user /dev/usb\n3. As alternatif if, sudo usermod -a -G lp user NOT WORKING!\n\nThis Is in Codeigniter!\n~~~PHP\n$this-\u003eload-\u003elibrary(\"EscPos.php\");\n\ntry {\n\t\t// Enter the device file for your USB printer here\n\t  $connector = new Escpos\\PrintConnectors\\FilePrintConnector(\"/dev/usb/lp0\");\n\t\t   \n\t\t/* Print a \"Hello world\" receipt\" */\n\t\t$printer = new Escpos\\Printer($connector);\n\t\t$printer -\u003e text(\"Hello World!\\n\");\n\t\t$printer -\u003e cut();\n\n\t\t/* Close printer */\n\t\t$printer -\u003e close();\n} catch (Exception $e) {\n\techo \"Couldn't print to this printer: \" . $e -\u003e getMessage() . \"\\n\";\n}\n~~~\n\n## Star History\n\n[![Star History Chart](https://api.star-history.com/svg?repos=rsuppersahabatan/ESC-POS\u0026type=Date)](https://star-history.com/#rsuppersahabatan/ESC-POS\u0026Date)\n\n\n## [![Repography logo](https://images.repography.com/logo.svg)](https://repography.com) / Top contributors\n[![Top contributors](https://images.repography.com/53549288/rsuppersahabatan/ESC-POS/top-contributors/H4IOSPEOE5t_kJczUIUk9OyEIaKlh538YAXm8ybCFFQ/z-9ludcu-oFzMgVTq8gsyX81B877T7rb1Ou1hJ1B4wY_table.svg)](https://github.com/rsuppersahabatan/ESC-POS/graphs/contributors)\n\n\nDone!\n\nMore info: topidesta.wordpress.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frsuppersahabatan%2Fesc-pos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frsuppersahabatan%2Fesc-pos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frsuppersahabatan%2Fesc-pos/lists"}