Skip to content

Simple hosting of temporary shared files with PHP.

License

Notifications You must be signed in to change notification settings

adangel/chunk-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chunk-php

Simple hosting of temporary files. The idea is basically chunk.io but implemented in php so that can 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/$1 [END]

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

Changelog

1.0.0 (2020-06-06)

  • Initial version