phptank Core Features Explained:

  • A quick intro to phptank and its wonders:

    Imagine phptank as a house. Or rather, the outer walls of a house.

    And the templates (or themes/designs/skins - whichever you prefer) as the rooms in your house.

    Then lastly, imagine the modules as the furniture in each room (template).

    Now, Using various templates, and modules - mixing and matching, you can quickly build the house of your dreams! Or as it is in this case, the website of your dreams. phptank can't be used to build real homes - Yet! ;)

  • Modular system:

    The end-user functionality of phptank comes almost exclusively from the use of modules. What this means for you as the webmaster or developer of your project is simple: No extra overhead for unused systems or functions! You install only the modules that your project requires.

    The only exception to this is the core functionality. This includes module scanning and module loading, language file construction, settings and class initialization, and caching.

  • Database independent core:

    The phptank core does not require installation or a database. If your project is small, or you do not require a database connection for your project, then don't waste time or overhead - phptank can function 100% without it.

    However! phptank is built to fully integrate and make use of database communication and with a simple module your phptank is ready to work with your database. You can even cache every query, but more on caching soon.

  • A Template system you can be proud of!

    We certainly are! The way the phptank template system is built you can literarily build multiple websites within the same core! All with different functionality and looks! With no extra overhead on the functions used by the other templates.

    Peaked your interest yet? Let me explain: Earlier we described how templates can be viewed as rooms in a house and the modules as the furniture in those rooms. In one room you have all your furniture arranged in one way, while in the next room all furniture is re-arranged. Switching between them will allow you to instantly switch between fully independent systems.

    How can I leverage this you ask? Well, for one you can use it to perform A/B testing - Template A have your newsletter signup in one position, while in Template B an entirely different location and see which performs best. You can have seasonal variations of your website without having to change the logo or elements for each season - simply switch templates to show that Halloween or Christmas edition of your design, and there are so many more uses!

    We will explain a little more how this is possible in the next feature explanation.

  • Template-before-Core (TbC) module loading:

    The module system in phptank is two-fold. Each module can be uploaded in two different places: 1. The core, and 2. the template(s). You can also upload them to both! In that case the TbC rule comes into effect: Template-before-Core!

    If you upload a module to the core, it will be loaded by any template you are using. If you upload a module to a specific template, it will only be used for this template and none of the others.

    If you upload a module to the core AND a template, the module in the TEMPLATE will be used while the module in the core will be ignored. You can use this system to make small (or big!) changes to a module for a specific template, while it remains original for all the other templates (they will load it from the core).

  • Modular Language system:

    First off, lets get basic: Each language is represented by its own file with a unique name: english.php, american.php, french.php, german.php and so on.

    Each module and template have their own language files. To add a new language, you can copy and rename one of the existing files and simply translate the variables.

    english.php -> norwegian.php.
    var1: "hello there!" -> "hei der!"

    And poof! You have a new translation of your site!

  • Powerful Cache System:

    The phptank cache system can create cache systems for most of the core functions such as language system and module system, and although these are fairly quick in the first place, with enough traffic there are seconds to spare by caching them.

    However, the power of the cache system comes from the database query caching! By default there are two cache durations you can update from the settings. They are Core Cache Duration, and Cache Duration. The Core Cache Duration is set to decide how often the core will check for new modules and new pages and language changes and that sort of thing, while the Cache Duration is how long other functions will be cached, such as database queries and similar.

    Additionally, you can override each individual query caching by setting a unique cache duration on the query itself, or you can set to override the caching of that query entirely!

  • Pages:

    I mentioned earlier that you could use phptank without a database. But I didn't explain how you could do that, so here we go:

    In both modules and templates you can add a "pages" folder, and inside these folders you can create/upload php files. These php files will automatically be added to phptank's loader and can instantly be accessed (or as soon as the cache file is updated).

    The page can contain anything from a simple paragraph or an "hello world" statement to complex pages making use of the functionality of all the modules and core. The modules are initialized before the page you are viewing is loaded so all your modules functionality is available in each page, not just the module your current page is located in.

    A page located in module A might rely on a class or a function in module B, and can do so without any problems at all.

  • Additional Functionality:

    This is only the main functionality that the core of phptank will provide. The main functionality for a website's end-user (the visitor) comes from the modules you decide to use. It is the modules that will turn your phptank into a functional website, so check out the modules we have available here: phptank Modules

  • Advertise with us

Full phptank Solutions:

Download a collection of modules that turn phptank into for example a forum, e-commerce, photo album or a range of other solutions.

No matches found.

Latest phptank Modules:

Latest modules for your phptank. Enhance your phptank to do all sorts of things with some nifty thingamabobs.


Allows you to require a password to access certain pages of your phpTank. - Does not support user registration.


Allows phpTank to display status messages easily after a task is completed.

  • Advertise with us