log1x / captured
A bulletproof rewrite of the Captured PHP script for use with CapturedApp
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 3
Forks: 0
Open Issues: 0
Type:package
Requires
- hashids/hashids: ^3.0
- nesbot/carbon: ^2.13
- samayo/bulletproof: ^4.0
This package is auto-updated.
Last update: 2024-11-26 17:11:30 UTC
README
This is a rewrite of the original Captured PHP script for use with Captured.
Features
- Clean, modernized rewrite with PSR-2.
- External configuration.
- Uses 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 library.
Installation
$ 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
:
curl -i -X POST \ -F "token=YOUR_TOKEN" \ -F "file=@path/to/test.jpg" \ https://example.com/screenshots/