/code/salty-files master $ find . "(" -name "*.php" ")" | grep -v vendor | xargs wc -l 42 ./bootstrap/services.php 107 ./bootstrap/routes.php 17 ./public/index.php 334 ./templates/home.php 14 ./templates/layout.php 35 ./src/User.php 47 ./src/FileMeta.php 147 ./src/UserRepository.php 189 ./src/FileRepository.php 23 ./src/ErrorMiddleware.php 29 ./src/View.php 100 ./src/AuthRepository.php 35 ./src/AuthMiddleware.php 1119 total
...and it's really 771 LOC; templates are static!
/code/salty-files master $ cat composer.json // snip "php": "^7.4", "slim/slim": "^4.4", "slim/http": "^1.0", "slim/psr7": "^1.0", "aura/sql": "^3.0", "pimple/pimple": "^3.2", "paragonie/paseto": "^1.0", "paragonie/halite": "^4.6", "ramsey/uuid": "^4.0", "ext-json": "*", "league/flysystem": "^1.0" // snip
/code/salty-files master $ cat composer.json // snip "php": "^7.4", "slim/slim": "^4.4", "slim/http": "^1.0", "slim/psr7": "^1.0", "aura/sql": "^3.0", "pimple/pimple": "^3.2", "paragonie/paseto": "^1.0", "paragonie/halite": "^4.6", "ramsey/uuid": "^4.0", "ext-json": "*", "league/flysystem": "^1.0" // snip
$reEncryptedFileKey = AsymmCrypto::encrypt( $decryptedFileKey, $user->getKey(), new EncryptionPublicKey( new HiddenString($recipientPublicKeyStr) ) );