{"id":15917514,"url":"https://github.com/takuya/php-atq-wrapper","last_synced_at":"2025-04-03T11:41:55.648Z","repository":{"id":57064694,"uuid":"344908606","full_name":"takuya/php-atq-wrapper","owner":"takuya","description":"atq/at/atrm command wrapper for php ","archived":false,"fork":false,"pushed_at":"2021-03-05T19:17:23.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-09T01:14:05.003Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/takuya.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":"2021-03-05T19:08:51.000Z","updated_at":"2021-03-05T19:17:25.000Z","dependencies_parsed_at":"2022-08-24T07:50:16.881Z","dependency_job_id":null,"html_url":"https://github.com/takuya/php-atq-wrapper","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya%2Fphp-atq-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya%2Fphp-atq-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya%2Fphp-atq-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya%2Fphp-atq-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/takuya","download_url":"https://codeload.github.com/takuya/php-atq-wrapper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246998102,"owners_count":20866690,"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":[],"created_at":"2024-10-06T18:11:10.471Z","updated_at":"2025-04-03T11:41:55.633Z","avatar_url":"https://github.com/takuya.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# atq/at/atrm command php wrapper\n\n'atq/at' scheduled job timer command line wrapper.\n\n#### what is atq \n\natq/at is pre-installd majaor linux dist. alarm or scheduling timer run once at specified.\n\nhttps://manpages.debian.org/jessie/at/at.1.en.html\n\n## Install \n\n```shell\ncomposer require takuya/php-atq-wrapper\n```\n\n## Samples\n\n### add/show/remove atq job\n\n```php\n\u003c?php\n    use SystemUtil\\AtJobs;\n    $at_job = new AtJobs( 'ssh server docker exec ubuntu1604 -- at' );\n    $id = $at_job-\u003eadd( '+30days', 'echo Hello 2','s' );\n    $at_job-\u003eexists($id);// =\u003e true\n    $at_job-\u003eget_body( $id ); //=\u003e /bin/sh body will be executed.\n    $at_job-\u003eremove($id); //=\u003e cancel job.\n```\n\n### list current queued jobs.\n\n```php\n\u003c?php\n    use SystemUtil\\AtJobs;\n    $at_job = new AtJobs( 'ssh server docker exec ubuntu1604 -- at' );\n    foreach ($at_job-\u003equeue() as $job) {\n      $job-\u003eid;\n      $job-\u003estart;\n      $job-\u003eq;\n      $job-\u003euser;\n      $job-\u003ebody();\n    }\n\n```\n### Cancel Jobs\n\n```php\n\u003c?php\n    use SystemUtil\\AtJobs;\n    $at_job = new AtJobs( 'ssh server docker exec ubuntu1604 -- at' );\n    foreach ($at_job-\u003equeue('a') as $job) {\n      $job-\u003eremove();\n    }\n```\n    ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakuya%2Fphp-atq-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftakuya%2Fphp-atq-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakuya%2Fphp-atq-wrapper/lists"}