{"id":19527353,"url":"https://github.com/daverandom/serial","last_synced_at":"2025-10-09T22:14:18.615Z","repository":{"id":56963188,"uuid":"135586430","full_name":"DaveRandom/Serial","owner":"DaveRandom","description":"Serial device manipulation toolkit","archived":false,"fork":false,"pushed_at":"2018-05-31T13:19:29.000Z","size":10,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-09T22:14:17.800Z","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/DaveRandom.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-31T13:19:20.000Z","updated_at":"2018-06-01T18:13:18.000Z","dependencies_parsed_at":"2022-08-21T05:40:20.290Z","dependency_job_id":null,"html_url":"https://github.com/DaveRandom/Serial","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DaveRandom/Serial","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaveRandom%2FSerial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaveRandom%2FSerial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaveRandom%2FSerial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaveRandom%2FSerial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DaveRandom","download_url":"https://codeload.github.com/DaveRandom/Serial/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaveRandom%2FSerial/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002130,"owners_count":26083307,"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-09T02:00:07.460Z","response_time":59,"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-11T01:14:43.049Z","updated_at":"2025-10-09T22:14:18.596Z","avatar_url":"https://github.com/DaveRandom.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Serial\n\n```php\n\u003c?php\n\nuse DaveRandom\\Serial\\DeviceManager;\nuse DaveRandom\\Serial\\ParityMode;\nuse DaveRandom\\Serial\\ControlFlowMode;\n\n// Use COM1\nconst COM_PORT = 1;\n\n// Create the correct device manager for the current platform (only windows supported so far)\n$manager = DeviceManager::create();\n\n// Get the current config for COM1\n$config = $manager-\u003egetConfigForDevice(COM_PORT);\nvar_dump($config);\n\n// Modify some parameters and set the config\n$config\n    -\u003esetBaudRate(9600)\n    -\u003esetParityMode(ParityMode::NONE)\n    -\u003esetDataBits(8)\n    -\u003esetStopBits(1)\n    -\u003esetControlFlowMode(ControlFlowMode::NONE)\n;\n$manager-\u003econfigureDevice(COM_PORT, $config);\n\n// Open the device\n$device = $manager-\u003eopenDevice(COM_PORT);\n\n// Send a message to the device\n$device-\u003ewrite('D');\n\n// Read some data from the device\nvar_dump($device-\u003eread());\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaverandom%2Fserial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaverandom%2Fserial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaverandom%2Fserial/lists"}