Skip to content
pekkis edited this page Mar 5, 2012 · 3 revisions

Filelib - file library for PHP 5.3

Filelib, Filebanksta among friends, is a reusable file library component for PHP 5.3 applications.

After implementing too many file-, media-, and other bankstas for too many PHP applications, a thought emerged. All the different filebankstas I had coded did basically the same things.

  1. A file is uploaded to the filebanksta.
  2. You store it somewhere both physically (the concrete file itself) and metaphysically (the metadata)
  3. The file must be versioned -- by versioning, I mean creating thumbnails for images, pdf's from documents and such, not the versioning of the history of a file.
  4. Someone wants to access the file or one of it's versions. If you want to serve lots of files, you want to let the HTTP server do the serving (fast). But if you have to implement access control, PHP checks the permissions and then does the serving (slower).

Of course there's a lot of unforeseen depth inside every step in this process, but the basic principles always remain the same. All the filebankstas do this stuff and practically all PHP apps ever made need this kind of filebanksta functionality.

I saw that a file library to end all the other file librarys was possible. Thus, the Filebanksta was born.

Clone this wiki locally