chunk-php

Simple hosting of temporary shared files with PHP.

MIT License

Stars
2
Committers
2

chunk-php

Simple hosting of temporary files. The idea is basically chunk.io but implemented in php so that it can be run on any website hoster.

Features

Development

./tools/composer install
./tools/phpunit --bootstrap vendor/autoload.php tests

Run for development

php -S localhost:8000 index.php

and then go to http://localhost:8000

Deploy into production

Depending on whether the script should be available at the root or as a subfolder, you need to use .htaccess and configure rewrite rules.

# Make sure, the directory has "AllowOverride FileInfo".

RewriteEngine on

# if installed in subfolder "/chunk-php/"
RewriteRule ^$ /chunk-php/index.php [END]
RewriteRule ^(.*)$ /chunk-php/index.php/$1 [END]

# if installed in root directory
RewriteRule ^$ /index.php [END]
RewriteRule ^(.*)$ /index.php [END]

And adjust the users/credentials in src/Config.php.

Changelog

1.0.0 (2020-06-06)

  • Initial version
Related Projects