diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4fbb073 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/vendor/ +/composer.lock diff --git a/README.md b/README.md index 731a9af..365d599 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,14 @@ # hippopotato -Simple files storage based on flat files. +Simple (local) filestorage based on PHP and flat files. -Currently based on PHP and NGiNX. +First iteration is only to server files. +To be able to extend the functionality, these files will first be served from `/f/`. + +The code should be written to be used as a PHP module, as well as, a separate site. +The [Slim](https://www.slimframework.com/) provides for the latter. + +The visibility of files is toggled by a file in each directory -- `.hippoacl`, + working somewhat like a `.gitignore` file. [^1] + +[^1]: https://git.deboone.nl/websites/nl.deboone/issues/16 diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..e284b67 --- /dev/null +++ b/composer.json @@ -0,0 +1,17 @@ +{ + "name": "kastdeur/hippopotato", + "description": "Simple flat file storage in PHP", + "license": "MIT", + "autoload": { + "psr-4": { + "Kastdeur\\Hippopotato\\": "src/" + } + }, + "authors": [ + { + "name": "ET de Boone", + "email": "dev@etdeboone.nl" + } + ], + "require": {} +} diff --git a/public/index.php b/public/index.php deleted file mode 100644 index 90d6971..0000000 --- a/public/index.php +++ /dev/null @@ -1,22 +0,0 @@ -