Skip to content

lagut-in/Slim-Image-Archive

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slim Image Archive

Simple*, fast and secure archive for images:

  • Create multiple categories with multiple albums with multiple images!
  • Manage multiple users with different privileges!
  • Easily navigate between all those things!
  • Protect your photos from the NSA! (not really)

The purpose of this project was for internal use of a company, so no big effort went into the presentation - it's simple and clean bootstrap ready for further improvements.

(*) I won't argue if you'll say that this code is an overkill.

Slim Image Archive Slim Image Archive

Dependencies

and a slug method taken from:

Installation
  • git clone https://github.com/ksdev-pl/Slim-Image-Archive.git
  • composer install
  • Import slim-image-archive.sql to your database
  • Configure your database connection in /app/app.php lines 60-63
  • Point web root to /public folder, the rest should be protected
  • Add write privileges to /tmp folder (with subfolders)
  • Sign in with email: admin@admin.com and password: admin
  • Create new user with admin privileges and delete default account
Things to know
  • If you wish to change allowed types of files that user can upload, update $mimeTypes in Image model, and both .htaccess files under /files folder and its /thumbs subfolder
  • In /app/views/image/create.html.twig you can change maxFileSize option for upload script
  • Exception logs are stored in /tmp/logs
  • User roles and corresponding privileges:
    • Normal - upload only
    • Extended - upload, edit & delete
    • Admin - manage users
License

Slim Image Archive is released under the MIT license.

About

Simple, fast and secure archive for images

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 77.0%
  • HTML 20.2%
  • ApacheConf 1.2%
  • CSS 1.1%
  • JavaScript 0.5%