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

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chunk-php

GitHub Actions 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

./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