adangel / chunk-php

Simple hosting of temporary shared files with PHP.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

chunk-php

Build Status GitHub Workflow Status GitHub GitHub release (latest SemVer)

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

composer install
vendor/bin/phpunit 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

About

Simple hosting of temporary shared files with PHP.

License:MIT License


Languages

Language:PHP 100.0%