├── LICENSE ├── README.md ├── composer.json ├── fixtures ├── .env ├── config │ └── file_secretary.php └── migrations │ └── 2017_09_27_000000_create_system__files_table.php └── src ├── Application ├── AddressableRemoteFile.php ├── AfterAssetUploadEventHandler.php ├── CheckPrivacy.php ├── ContextCategoryTypes.php ├── EloquentPersistedFile.php ├── Events │ ├── AfterAssetUpload.php │ └── BeforeAssetUpload.php ├── FileSecretaryProxy.php ├── FileUniqueIdGeneratorInterface.php ├── MainImageFinder.php ├── PersistableFile.php ├── PersistableFileTrait.php ├── PresentedFile.php ├── Privacy │ ├── NotAllowedPrivacy.php │ ├── PrivacyInterface.php │ └── PublicPrivacy.php ├── PrivacyCheckNeeds.php ├── StoreConfigGeneratorInterface.php └── Usecases │ ├── DeleteFile.php │ ├── DeleteTrackedFile.php │ ├── MakeAndStoreImage.php │ ├── MakeAndStoreImageResponse.php │ ├── MakeImage.php │ ├── StoreFile.php │ ├── StoreTrackedFile.php │ ├── UploadAsAssetCommand.php │ └── UseOrUnuseTrackedFile.php ├── Infrastructure ├── ArrayBasedStoreConfigGenerator.php ├── FileSecretaryManager.php ├── FileSecretaryServiceProvider.php ├── Images │ ├── DynamicTemplateInterface.php │ ├── FileSecretaryImageManager.php │ ├── ImageMutateRequest.php │ ├── MadeImageResponse.php │ ├── TemplateInterface.php │ ├── TemplateManager.php │ ├── TemplateNotFoundException.php │ └── Templates │ │ ├── AbstractDynamicTemplate.php │ │ └── DynamicResizableTemplate.php ├── Md5FileNameGenerator.php ├── MillionOptimizedFileNameGenerator.php ├── MimeDbRepository.php ├── PhpUniqidFileNameGenerator.php ├── Rackspace │ └── DirectoryPush.php ├── Sha1FileNameGenerator.php ├── UrlGenerator.php └── Uuid4FileNameGenerator.php ├── Presentation ├── Console │ ├── DeleteOldUnusedFiles.php │ └── UploadAssets.php └── Http │ ├── Actions │ └── DownloadFileAction.php │ ├── CacheContentHeadersMutator.php │ ├── HeadersMutatorInterface.php │ ├── Middleware │ └── PrivacyCheckMiddleware.php │ └── routes.php └── helpers.php /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/composer.json -------------------------------------------------------------------------------- /fixtures/.env: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fixtures/config/file_secretary.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/fixtures/config/file_secretary.php -------------------------------------------------------------------------------- /fixtures/migrations/2017_09_27_000000_create_system__files_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/fixtures/migrations/2017_09_27_000000_create_system__files_table.php -------------------------------------------------------------------------------- /src/Application/AddressableRemoteFile.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Application/AddressableRemoteFile.php -------------------------------------------------------------------------------- /src/Application/AfterAssetUploadEventHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Application/AfterAssetUploadEventHandler.php -------------------------------------------------------------------------------- /src/Application/CheckPrivacy.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Application/CheckPrivacy.php -------------------------------------------------------------------------------- /src/Application/ContextCategoryTypes.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Application/ContextCategoryTypes.php -------------------------------------------------------------------------------- /src/Application/EloquentPersistedFile.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Application/EloquentPersistedFile.php -------------------------------------------------------------------------------- /src/Application/Events/AfterAssetUpload.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Application/Events/AfterAssetUpload.php -------------------------------------------------------------------------------- /src/Application/Events/BeforeAssetUpload.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Application/Events/BeforeAssetUpload.php -------------------------------------------------------------------------------- /src/Application/FileSecretaryProxy.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Application/FileSecretaryProxy.php -------------------------------------------------------------------------------- /src/Application/FileUniqueIdGeneratorInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Application/FileUniqueIdGeneratorInterface.php -------------------------------------------------------------------------------- /src/Application/MainImageFinder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Application/MainImageFinder.php -------------------------------------------------------------------------------- /src/Application/PersistableFile.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Application/PersistableFile.php -------------------------------------------------------------------------------- /src/Application/PersistableFileTrait.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Application/PersistableFileTrait.php -------------------------------------------------------------------------------- /src/Application/PresentedFile.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Application/PresentedFile.php -------------------------------------------------------------------------------- /src/Application/Privacy/NotAllowedPrivacy.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Application/Privacy/NotAllowedPrivacy.php -------------------------------------------------------------------------------- /src/Application/Privacy/PrivacyInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Application/Privacy/PrivacyInterface.php -------------------------------------------------------------------------------- /src/Application/Privacy/PublicPrivacy.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Application/Privacy/PublicPrivacy.php -------------------------------------------------------------------------------- /src/Application/PrivacyCheckNeeds.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Application/PrivacyCheckNeeds.php -------------------------------------------------------------------------------- /src/Application/StoreConfigGeneratorInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Application/StoreConfigGeneratorInterface.php -------------------------------------------------------------------------------- /src/Application/Usecases/DeleteFile.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Application/Usecases/DeleteFile.php -------------------------------------------------------------------------------- /src/Application/Usecases/DeleteTrackedFile.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Application/Usecases/DeleteTrackedFile.php -------------------------------------------------------------------------------- /src/Application/Usecases/MakeAndStoreImage.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Application/Usecases/MakeAndStoreImage.php -------------------------------------------------------------------------------- /src/Application/Usecases/MakeAndStoreImageResponse.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Application/Usecases/MakeAndStoreImageResponse.php -------------------------------------------------------------------------------- /src/Application/Usecases/MakeImage.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Application/Usecases/MakeImage.php -------------------------------------------------------------------------------- /src/Application/Usecases/StoreFile.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Application/Usecases/StoreFile.php -------------------------------------------------------------------------------- /src/Application/Usecases/StoreTrackedFile.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Application/Usecases/StoreTrackedFile.php -------------------------------------------------------------------------------- /src/Application/Usecases/UploadAsAssetCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Application/Usecases/UploadAsAssetCommand.php -------------------------------------------------------------------------------- /src/Application/Usecases/UseOrUnuseTrackedFile.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Application/Usecases/UseOrUnuseTrackedFile.php -------------------------------------------------------------------------------- /src/Infrastructure/ArrayBasedStoreConfigGenerator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Infrastructure/ArrayBasedStoreConfigGenerator.php -------------------------------------------------------------------------------- /src/Infrastructure/FileSecretaryManager.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Infrastructure/FileSecretaryManager.php -------------------------------------------------------------------------------- /src/Infrastructure/FileSecretaryServiceProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Infrastructure/FileSecretaryServiceProvider.php -------------------------------------------------------------------------------- /src/Infrastructure/Images/DynamicTemplateInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Infrastructure/Images/DynamicTemplateInterface.php -------------------------------------------------------------------------------- /src/Infrastructure/Images/FileSecretaryImageManager.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Infrastructure/Images/FileSecretaryImageManager.php -------------------------------------------------------------------------------- /src/Infrastructure/Images/ImageMutateRequest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Infrastructure/Images/ImageMutateRequest.php -------------------------------------------------------------------------------- /src/Infrastructure/Images/MadeImageResponse.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Infrastructure/Images/MadeImageResponse.php -------------------------------------------------------------------------------- /src/Infrastructure/Images/TemplateInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Infrastructure/Images/TemplateInterface.php -------------------------------------------------------------------------------- /src/Infrastructure/Images/TemplateManager.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Infrastructure/Images/TemplateManager.php -------------------------------------------------------------------------------- /src/Infrastructure/Images/TemplateNotFoundException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Infrastructure/Images/TemplateNotFoundException.php -------------------------------------------------------------------------------- /src/Infrastructure/Images/Templates/AbstractDynamicTemplate.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Infrastructure/Images/Templates/AbstractDynamicTemplate.php -------------------------------------------------------------------------------- /src/Infrastructure/Images/Templates/DynamicResizableTemplate.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Infrastructure/Images/Templates/DynamicResizableTemplate.php -------------------------------------------------------------------------------- /src/Infrastructure/Md5FileNameGenerator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Infrastructure/Md5FileNameGenerator.php -------------------------------------------------------------------------------- /src/Infrastructure/MillionOptimizedFileNameGenerator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Infrastructure/MillionOptimizedFileNameGenerator.php -------------------------------------------------------------------------------- /src/Infrastructure/MimeDbRepository.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Infrastructure/MimeDbRepository.php -------------------------------------------------------------------------------- /src/Infrastructure/PhpUniqidFileNameGenerator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Infrastructure/PhpUniqidFileNameGenerator.php -------------------------------------------------------------------------------- /src/Infrastructure/Rackspace/DirectoryPush.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Infrastructure/Rackspace/DirectoryPush.php -------------------------------------------------------------------------------- /src/Infrastructure/Sha1FileNameGenerator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Infrastructure/Sha1FileNameGenerator.php -------------------------------------------------------------------------------- /src/Infrastructure/UrlGenerator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Infrastructure/UrlGenerator.php -------------------------------------------------------------------------------- /src/Infrastructure/Uuid4FileNameGenerator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Infrastructure/Uuid4FileNameGenerator.php -------------------------------------------------------------------------------- /src/Presentation/Console/DeleteOldUnusedFiles.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Presentation/Console/DeleteOldUnusedFiles.php -------------------------------------------------------------------------------- /src/Presentation/Console/UploadAssets.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Presentation/Console/UploadAssets.php -------------------------------------------------------------------------------- /src/Presentation/Http/Actions/DownloadFileAction.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Presentation/Http/Actions/DownloadFileAction.php -------------------------------------------------------------------------------- /src/Presentation/Http/CacheContentHeadersMutator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Presentation/Http/CacheContentHeadersMutator.php -------------------------------------------------------------------------------- /src/Presentation/Http/HeadersMutatorInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Presentation/Http/HeadersMutatorInterface.php -------------------------------------------------------------------------------- /src/Presentation/Http/Middleware/PrivacyCheckMiddleware.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Presentation/Http/Middleware/PrivacyCheckMiddleware.php -------------------------------------------------------------------------------- /src/Presentation/Http/routes.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/Presentation/Http/routes.php -------------------------------------------------------------------------------- /src/helpers.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reshadman/file-secretary/HEAD/src/helpers.php --------------------------------------------------------------------------------