Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/log1x/captured
A modernized rewrite of the Captured PHP Uploader Script.
https://github.com/log1x/captured
captured macos macos-app screenshots
Last synced: about 2 months ago
JSON representation
A modernized rewrite of the Captured PHP Uploader Script.
- Host: GitHub
- URL: https://github.com/log1x/captured
- Owner: Log1x
- License: mit
- Created: 2019-03-05T21:29:49.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-26T05:03:56.000Z (over 5 years ago)
- Last Synced: 2024-10-04T20:43:10.399Z (3 months ago)
- Topics: captured, macos, macos-app, screenshots
- Language: PHP
- Homepage: http://www.capturedapp.com/
- Size: 10.7 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Captured for PHP
This is a rewrite of the [original](https://github.com/csexton/captured-php) Captured PHP script for use with [Captured](http://www.capturedapp.com/).
### Features
- Clean, modernized rewrite with PSR-2.
- External configuration.
- Uses [Bulletproof](https://github.com/samayo/bulletproof) to securely (and properly) handle image uploads.
- 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.### Installation
```sh
$ composer create-project log1x/captured:dev-master
```### Usage
- Set configuration in `config.php`.
- Upload the `captured` folder contents to your server.
- Configure your Captured App with your URL and token.### Testing
For testing purposes, you can use `curl`:
```sh
curl -i -X POST \
-F "token=YOUR_TOKEN" \
-F "file=@path/to/test.jpg" \
https://example.com/screenshots/
```