{"id":19895321,"url":"https://github.com/razshare/catpaw-screenshot-showcase","last_synced_at":"2025-10-05T20:50:12.084Z","repository":{"id":247081919,"uuid":"824973845","full_name":"razshare/catpaw-screenshot-showcase","owner":"razshare","description":"Taking screenshots with Php natively using a Go FFI.","archived":false,"fork":false,"pushed_at":"2024-07-06T23:25:21.000Z","size":2101,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-26T16:46:29.502Z","etag":null,"topics":["php","shared-library"],"latest_commit_sha":null,"homepage":"https://github.com/razshare/catpaw","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/razshare.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2024-07-06T12:49:41.000Z","updated_at":"2025-01-12T21:35:19.000Z","dependencies_parsed_at":"2024-07-06T13:57:00.976Z","dependency_job_id":"814cbae8-72b0-43f8-96fc-0aaa9d561412","html_url":"https://github.com/razshare/catpaw-screenshot-showcase","commit_stats":null,"previous_names":["razshare/catpaw-screenshot-showcase"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/razshare/catpaw-screenshot-showcase","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razshare%2Fcatpaw-screenshot-showcase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razshare%2Fcatpaw-screenshot-showcase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razshare%2Fcatpaw-screenshot-showcase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razshare%2Fcatpaw-screenshot-showcase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/razshare","download_url":"https://codeload.github.com/razshare/catpaw-screenshot-showcase/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razshare%2Fcatpaw-screenshot-showcase/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278518668,"owners_count":26000177,"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-05T02:00:06.059Z","response_time":54,"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":["php","shared-library"],"created_at":"2024-11-12T18:36:24.044Z","updated_at":"2025-10-05T20:50:12.062Z","avatar_url":"https://github.com/razshare.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# What is this?\n\nThis is a Php program that takes screenshots of your screen natively.\n\n# Premise\n\nI don't know if this works on Windows or MacOS, I don't use neither of those platforms, I've tested this only on Ubuntu (Zorin OS).\n\n```sh\n❯ lsb_release -a\nNo LSB modules are available.\nDistributor ID:\tZorin\nDescription:\tZorin OS 17.1\nRelease:\t17\nCodename:\tjammy\n```\n\nI don't plan to support Windows or MacOS any time soon.\\\nThis is a showcase of how easy it is to interop between Php and Go using [catpaw](https://github.com/razshare/catpaw) on Linux.\n\n# Run without building\n\n```php\ncomposer update \u0026\u0026 \\\ncomposer prod:start -- -o file.png\n```\n\n# Build portable file and run it\n\n```php\ncomposer update \u0026\u0026 \\\ncomposer prod:build \u0026\u0026 \\\nphp app.phar -o file.png\n```\n\n![Peek 2024-07-06 15-55](https://github.com/razshare/catpaw-screenshot-showcase/assets/6891346/fe8272d8-5606-4125-978b-b9494324bbe7)\n\n# Requirements\n\nYou will need Php 8.3 (or greater), Go and C++ installed on your machine.\n\n- Refer to https://go.dev/doc/install in order to install Go.\n- You can install C++ requirements by running the following in your terminal\n  ```sh\n  apt install build-essential\n  ```\n\n# Or use Prebuilts\n\nIf you don't wanna bother installing Go and C++, simply download the prebuilt binaries from [here](https://github.com/razshare/catpaw-screenshot-showcase/releases).\n\nExtract the app.zip file and execute\n\n```sh\nphp app.phar -o file.png\n```\n\nto take a screenshot.\n\n\u003e [!NOTE]\n\u003e You will still need Php 8.3 installed on your machine.\n\n\n# Where's the source code?\n\nThe source code for the Go library can be found in your [vendor/catpaw/catpaw/src/lib/Go/Resources/CaptureScreen/main.go](https://github.com/razshare/catpaw/blob/master/src/lib/Go/Resources/CaptureScreen/main.go).\\\nIt comes baked in with [catpaw](https://github.com/razshare/catpaw) and you can compile it with\n\n```sh\nphp catpaw.phar -g vendor/catpaw/catpaw/src/lib/Go/Resources/CaptureScreen/main.go\n```\n\n\u003e [!NOTE]\n\u003e The catpaw.phar program is automatically downloaded in your project when you run `composer update`.\n\n\u003e [!NOTE]\n\u003e For more information and features refer to [catpaw](https://github.com/razshare/catpaw).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frazshare%2Fcatpaw-screenshot-showcase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frazshare%2Fcatpaw-screenshot-showcase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frazshare%2Fcatpaw-screenshot-showcase/lists"}