{"id":15707966,"url":"https://github.com/log1x/pomf","last_synced_at":"2025-05-12T20:56:53.791Z","repository":{"id":88983764,"uuid":"215004238","full_name":"Log1x/pomf","owner":"Log1x","description":"A simple implementation of the Pomf API.","archived":false,"fork":false,"pushed_at":"2019-10-16T20:20:51.000Z","size":16,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-10T10:36:29.236Z","etag":null,"topics":["image-upload","katana","pomf","screenshot","screenshots","sharex"],"latest_commit_sha":null,"homepage":"https://github.com/log1x/pomf","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/Log1x.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-10-14T09:38:13.000Z","updated_at":"2024-04-12T11:11:42.000Z","dependencies_parsed_at":"2023-06-13T10:30:36.313Z","dependency_job_id":null,"html_url":"https://github.com/Log1x/pomf","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/Log1x%2Fpomf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Log1x%2Fpomf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Log1x%2Fpomf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Log1x%2Fpomf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Log1x","download_url":"https://codeload.github.com/Log1x/pomf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253823351,"owners_count":21969844,"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":["image-upload","katana","pomf","screenshot","screenshots","sharex"],"created_at":"2024-10-03T20:42:45.627Z","updated_at":"2025-05-12T20:56:53.744Z","avatar_url":"https://github.com/Log1x.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pomf Stand-alone API for PHP\n\nHere lives a simple, modernized, stand-alone implementation of the Pomf API commonly seen in screenshot tools such as [ShareX](https://github.com/ShareX/ShareX) and [Katana](https://github.com/bluegill/katana).\n\nThe purpose of this project is for those who want to self-host their screenshots without a frontend as seen in the original [Pomf](https://github.com/pomf/pomf-php) project.\n\n### Features\n\n- Clean, modernized code-base with PSR-2.\n- Uses [Bulletproof](https://github.com/samayo/bulletproof) to securely (and properly) handle image uploads.\n- Configurable token to prevent outside uploading.\n- Customizable screenshot filenames with the ability to set a slug and timestamp (e.g. `Screenshot_2019-03-02_13-12-57.png`) or as a randomized string using the [Hashids](https://github.com/ivanakimov/hashids.php) library.\n\n### Installation\n\n```bash\n$ composer create-project log1x/pomf screenshots\n```\n\n### Usage\n\n- Set configuration in `config.php`.\n- Upload the `pomf` folder contents to your server.\n- Configure your Pomf App with your URL  (e.g. `https://example.com/screenshots/upload.php?token=secret`)\n\n### Testing\n\nFor testing purposes, you can use `curl`:\n\n```bash\n$ curl -i -X POST -F 'file=test@path/to/test.jpg' 'https://example.com/screenshots/upload.php?token=secret'\n```\n\nor `httpie`:\n\n```bash\n$ http --form 'https://example.com/screenshots/upload.php?token=secret' 'test@path/to/test.jpg'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flog1x%2Fpomf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flog1x%2Fpomf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flog1x%2Fpomf/lists"}