2017 © Pedro Peláez
 

project attogram-framework

The Attogram Framework provides developers a PHP skeleton starter site with a content module system, file-based URL routing, IP-protected backend, Markdown parser, jQuery and Bootstrap. Core modules available to add an integrated SQLite database with web admin, user system, and more.

image

attogram/attogram-framework

The Attogram Framework provides developers a PHP skeleton starter site with a content module system, file-based URL routing, IP-protected backend, Markdown parser, jQuery and Bootstrap. Core modules available to add an integrated SQLite database with web admin, user system, and more.

  • Sunday, January 1, 2017
  • by attogram
  • Repository
  • 2 Watchers
  • 8 Stars
  • 56 Installations
  • PHP
  • 0 Dependents
  • 8 Suggesters
  • 1 Forks
  • 8 Open issues
  • 31 Versions
  • 0 % Grown

The README.md

Attogram Framework

Latest Stable Version Latest Unstable Version Total Downloads License Code Climate Issue Count Codacy Badge [CHANGELOG] [TODO], (*1)

The Attogram Framework provides developers a PHP skeleton starter site with a content module system, file-based URL routing, IP-protected backend, Markdown parser, jQuery and Bootstrap., (*2)

Core modules available to add a SQLite database with web admin, user system, and more., (*3)

After that, Attogram tries to stay out of your way while you do your thing!, (*4)

More Info

Requirements

  • PHP 5.3.3 or higher, or PHP7
  • PHP installed with SQLite PDO driver
  • Apache 2.2.16 or higher, with setting: AllowOveride all

Setup: Install

  • Get Attogram:, (*5)

  • Setup your web server to use the ./public/ directory as the web site root., (*8)

  • edit ./public/.htaccess, set FallbackResource, ErrorDocument 403 and ErrorDocument 404 to the full web path to the index.php file in the install directory.
  • (optional) copy ./public/config.sample.php to ./public/config.php and edit to change default settings .

Setup: Admin

  • admin pages are IP protected
  • change the allowed admin IPs by setting $config['admins'] in ./public/config.php
  • default admin IPs is localhost in ip4 and ip6: array( '127.0.0.1', '::1' )
  • admin page requests from non-admin IPs will result in a 404 Page Not Found error

Attogram now has modules! Updated docs coming soon

OLD DOCS

Setup: Database

  • Install the Attogram Database Module
  • Make sure the database file ./db/global is writeable by the web server
  • Tables are lazily created when needed.
  • To create all tables at once, goto the db-tables admin page and click Create Attogram Tables
  • phpLiteAdmin is available for database administration, goto the db-admin admin page, default password is attogram

Setup: Users

  • load the homepage, goto admin action users, click Create New User
  • enter username, password, etc. and click Insert
  • load the homepage, click login, login as the new user

Attogram Modules

  • Easily create modules to extend Attogram!
  • Each module lives in its own subdirectory within the Attogram ./modules/ directory.

Module Structure

  • Modules may have the following subdirectories:, (*9)

    • actions/ - The Public Actions (.php or .md markdown files) If present, the home action is used as the home page.
    • admin_actions/ - The backend admin-only Actions (.php or .md markdown files)
    • configs/- Configurations via namespace Attogram; global $config; $config['configname'] = ..., loaded at startup (.php files only)
    • includes/ - Included files, loaded at startup (.php files only)
    • tables/ - Database table definitions. Tables are created lazily as needed (.sql files only)
    • templates/ - Templates, to override default Attogram templates (.php files only)
    • public/ - Files for public consumption. Served via requests to the web/ virtual web directory
  • Modules are loaded in directory list order., (*10)

    • Actions and files cascade: a duplicate action name or file will overwrite any previous modules action or file of the same name.

Core Modules

Create a page

  • create a new PHP or Markdown file in the ./actions/ directory, add anything you want!
  • The filename is used as the page URL. ./actions/example.php = example.com/example/

PHP pages

  • PHP filenames must end in .php
  • The Attogram object is available via the $this variable
  • Helpful functions:, (*11)

    • $this->pageHeader($title)
    • $this->pageFooter()
    • $this->log->debug(), ->error(), etc.
    • $this->getSiteUrl()
    • $this->error404($error_message)
    • $this->isAdmin()
    • $this->isLoggedIn()
  • Depth settings in ./public/config.php, (*12)

    • $config['depth']['insert-action-name-here']
  • End Slash settings in ./public/config.php, (*13)

    • $config['noEndSlash'][] = 'insert-action-name-here'

Markdown pages

  • Markdown filenames must end in .md
  • The first line of the Markdown file is used as the page title

Remove a page

  • delete the pages corresponding file from the ./actions/ directory

Admin pages

  • create/delete the same as normal pages, but in the ./admin_actions/ directory

Database tables

  • To add a table, add a file into ./tables/ directory
  • The filename must be the name of the table
  • File content is the sql CREATE TABLE ... statement
  • tables are automatically created upon first use

Web discovery

  • If ./robots.txt does not exist, Attogram dynamically serves it, with a link to the Sitemap
  • If ./sitemap.xml does not exist, Attogram dynamically serves it, with a listing of all public pages

Admin URL overrides

  • admins may use URL/?noadmin on any page to turn off admin access
  • admins may use URL/?debug on any page to turn on debugging

The Versions

01/01 2017

dev-master

9999999-dev https://github.com/attogram/attogram

The Attogram Framework provides developers a PHP skeleton starter site with a content module system, file-based URL routing, IP-protected backend, Markdown parser, jQuery and Bootstrap. Core modules available to add an integrated SQLite database with web admin, user system, and more.

  Sources   Download

(MIT or GPL-3.0+)

The Requires

 

The Development Requires

framework php skeleton jquery bootstrap markdown starter apache sqlite attogram attogram framework

24/07 2016

v0.8.2

0.8.2.0 https://github.com/attogram/attogram

The Attogram Framework provides developers a PHP skeleton starter site with a content module system, file-based URL routing, IP-protected backend, Markdown parser, jQuery and Bootstrap. Core modules available to add an integrated SQLite database with web admin, user system, and more.

  Sources   Download

(MIT or GPL-3.0+)

The Requires

 

The Development Requires

framework php skeleton jquery bootstrap markdown starter apache sqlite attogram attogram framework

21/07 2016

v0.8.1

0.8.1.0 https://github.com/attogram/attogram

The Attogram Framework provides developers a PHP skeleton starter site with a content module system, file-based URL routing, IP-protected backend, Markdown parser, jQuery and Bootstrap. Core modules available to add an integrated SQLite database with web admin, user system, and more.

  Sources   Download

(MIT or GPL-3.0+)

The Requires

 

The Development Requires

framework php skeleton jquery bootstrap markdown starter apache sqlite attogram attogram framework

21/07 2016

v0.8.0

0.8.0.0 https://github.com/attogram/attogram

The Attogram Framework provides developers a PHP skeleton starter site with a content module system, file-based URL routing, IP-protected backend, Markdown parser, jQuery and Bootstrap. Core modules available to add an integrated SQLite database with web admin, user system, and more.

  Sources   Download

(MIT or GPL-3.0+)

The Requires

 

The Development Requires

framework php skeleton jquery bootstrap markdown starter apache sqlite attogram attogram framework

21/07 2016

v0.7.9

0.7.9.0 https://github.com/attogram/attogram

The Attogram Framework provides developers a PHP skeleton starter site with a content module system, file-based URL routing, IP-protected backend, Markdown parser, jQuery and Bootstrap. Core modules available to add an integrated SQLite database with web admin, user system, and more.

  Sources   Download

(MIT or GPL-3.0+)

The Requires

 

The Development Requires

framework php skeleton jquery bootstrap markdown starter apache sqlite attogram attogram framework

17/07 2016

v0.7.8

0.7.8.0 https://github.com/attogram/attogram

The Attogram Framework provides developers a PHP skeleton starter site with a content module system, file-based URL routing, IP-protected backend, Markdown parser, jQuery and Bootstrap. Core modules available to add an integrated SQLite database with web admin, user system, and more.

  Sources   Download

(MIT or GPL-3.0+)

The Requires

 

The Development Requires

framework php skeleton jquery bootstrap markdown starter apache sqlite attogram attogram framework

14/07 2016

v0.7.7

0.7.7.0 https://github.com/attogram/attogram

The Attogram Framework provides developers a PHP skeleton starter site with content modules, file-based URL routing, IP-protected backend, user system, integrated SQLite database with web admin, Markdown parser, jQuery and Bootstrap.

  Sources   Download

(MIT or GPL-3.0+)

The Requires

 

The Development Requires

framework php skeleton jquery bootstrap markdown starter apache sqlite attogram attogram framework

13/07 2016

v0.7.6

0.7.6.0 https://github.com/attogram/attogram

The Attogram Framework provides developers a PHP skeleton starter site with content modules, file-based URL routing, IP-protected backend, user system, integrated SQLite database with web admin, Markdown parser, jQuery and Bootstrap.

  Sources   Download

(MIT or GPL-3.0+)

The Requires

 

The Development Requires

framework php skeleton jquery bootstrap markdown starter apache sqlite attogram attogram framework

11/07 2016

v0.7.5

0.7.5.0 https://github.com/attogram/attogram

The Attogram Framework provides developers a PHP skeleton starter site with content modules, file-based URL routing, IP-protected backend, user system, integrated SQLite database with web admin, Markdown parser, jQuery and Bootstrap.

  Sources   Download

(MIT or GPL-3.0+)

The Requires

 

The Development Requires

framework php skeleton jquery bootstrap markdown starter apache sqlite attogram attogram framework

09/07 2016

v0.7.4

0.7.4.0 https://github.com/attogram/attogram

The Attogram Framework provides developers a PHP skeleton starter site with content modules, file-based URL routing, IP-protected backend, user system, integrated SQLite database with web admin, Markdown parser, jQuery and Bootstrap.

  Sources   Download

(MIT or GPL-3.0+)

The Requires

 

The Development Requires

framework php skeleton jquery bootstrap markdown starter apache sqlite attogram attogram framework

08/07 2016

v0.7.3

0.7.3.0 https://github.com/attogram/attogram

The Attogram Framework provides developers a PHP skeleton starter site with content modules, file-based URL routing, IP-protected backend, user system, integrated SQLite database with web admin, Markdown parser, jQuery and Bootstrap.

  Sources   Download

(MIT or GPL-3.0+)

The Requires

 

The Development Requires

framework php skeleton jquery bootstrap markdown starter apache sqlite attogram attogram framework

07/07 2016

v0.7.2

0.7.2.0 https://github.com/attogram/attogram

The Attogram Framework provides developers a PHP skeleton starter site with content modules, file-based URL routing, IP-protected backend, user system, integrated SQLite database with web admin, Markdown parser, jQuery and Bootstrap.

  Sources   Download

(MIT or GPL-3.0+)

The Requires

 

framework php skeleton jquery bootstrap markdown starter apache sqlite attogram

05/07 2016

v0.7.1

0.7.1.0 https://github.com/attogram/attogram

The Attogram Framework provides developers a PHP skeleton starter site with content modules, file-based URL routing, IP-protected backend, user system, integrated SQLite database with web admin, Markdown parser, jQuery and Bootstrap.

  Sources   Download

(MIT or GPL-3.0+)

The Requires

 

framework php skeleton jquery bootstrap markdown starter apache sqlite attogram

05/07 2016

v0.7.0

0.7.0.0 https://github.com/attogram/attogram

The Attogram Framework provides developers a PHP skeleton starter site with content modules, file-based URL routing, IP-protected backend, user system, integrated SQLite database with web admin, Markdown parser, jQuery and Bootstrap.

  Sources   Download

(MIT or GPL-3.0+)

The Requires

 

framework php skeleton jquery bootstrap markdown starter apache sqlite attogram

03/07 2016

v0.6.9

0.6.9.0 https://github.com/attogram/attogram

The Attogram Framework provides developers a PHP skeleton starter site with content modules, file-based URL routing, IP-protected backend, user system, integrated SQLite database with web admin, Markdown parser, jQuery and Bootstrap.

  Sources   Download

(MIT or GPL-3.0+)

The Requires

 

framework php skeleton jquery bootstrap markdown starter apache sqlite attogram

30/06 2016

v0.6.7

0.6.7.0 https://github.com/attogram/attogram

The Attogram Framework provides developers a PHP skeleton starter site with content modules, file-based URL routing, IP-protected backend, user system, integrated SQLite database with web admin, Markdown parser, jQuery and Bootstrap.

  Sources   Download

(MIT or GPL-3.0+)

The Requires

 

framework php skeleton jquery bootstrap markdown starter apache sqlite attogram

28/06 2016

v0.6.6

0.6.6.0 https://github.com/attogram/attogram

The Attogram Framework provides developers a PHP skeleton starter site with content modules, file-based URL routing, IP-protected backend, user system, integrated SQLite database with web admin, Markdown parser, jQuery and Bootstrap.

  Sources   Download

(MIT or GPL-3.0+)

The Requires

 

framework php skeleton jquery bootstrap markdown starter apache sqlite attogram

26/06 2016

v0.6.5

0.6.5.0 https://github.com/attogram/attogram

The Attogram Framework provides developers a PHP skeleton starter site with content modules, file-based URL routing, IP-protected backend, user system, integrated SQLite database with web admin, Markdown parser, jQuery and Bootstrap.

  Sources   Download

(MIT or GPL-3.0+)

The Requires

 

framework php skeleton jquery bootstrap markdown starter apache sqlite attogram

21/06 2016

v0.6.4

0.6.4.0 https://github.com/attogram/attogram

The Attogram Framework provides developers a PHP skeleton starter site with content modules, file-based URL routing, IP-protected backend, user system, integrated SQLite database with web admin, Markdown parser, jQuery and Bootstrap.

  Sources   Download

(MIT or GPL-3.0+)

The Requires

 

framework php skeleton jquery bootstrap markdown starter apache sqlite attogram

20/06 2016

v0.6.3

0.6.3.0 https://github.com/attogram/attogram

The Attogram Framework provides developers a PHP skeleton starter site with content modules, file-based URL routing, IP-protected backend, user system, integrated SQLite database with web admin, Markdown parser, jQuery and Bootstrap.

  Sources   Download

(MIT or GPL-3.0+)

The Requires

 

framework php skeleton jquery bootstrap markdown starter apache sqlite attogram

17/06 2016

v0.6.2

0.6.2.0 https://github.com/attogram/attogram

The Attogram Framework provides developers a PHP skeleton starter site with content modules, file-based URL routing, IP-protected backend, user system, integrated SQLite database with web admin, Markdown parser, jQuery and Bootstrap.

  Sources   Download

(MIT or GPL-3.0+)

The Requires

 

framework php skeleton jquery bootstrap markdown starter apache sqlite attogram

16/06 2016

v0.6.1

0.6.1.0 https://github.com/attogram/attogram

The Attogram Framework provides developers a PHP skeleton starter site with content modules, file-based URL routing, IP-protected backend, user system, integrated SQLite database with web admin, Markdown parser, jQuery and Bootstrap.

  Sources   Download

(MIT or GPL-3.0+)

The Requires

 

framework php skeleton jquery bootstrap markdown starter apache sqlite attogram

15/06 2016

v0.6.0

0.6.0.0 https://github.com/attogram/attogram

The Attogram Framework provides developers a PHP skeleton starter site with content modules, file-based URL routing, IP-protected backend, user system, integrated SQLite database with web admin, Markdown parser, jQuery and Bootstrap.

  Sources   Download

(MIT or GPL-3.0+)

The Requires

 

framework php skeleton jquery bootstrap markdown starter apache sqlite attogram

14/06 2016

v0.5.9

0.5.9.0 https://github.com/attogram/attogram

The Attogram Framework provides developers a PHP skeleton starter site with content modules, file-based URL routing, IP-protected backend, user system, integrated SQLite database with web admin, Markdown parser, jQuery and Bootstrap.

  Sources   Download

(MIT or GPL-3.0+)

The Requires

 

framework php skeleton jquery bootstrap markdown starter apache sqlite attogram

13/06 2016

v0.5.8

0.5.8.0 https://github.com/attogram/attogram

The Attogram Framework provides developers a PHP skeleton starter site with content modules, file-based URL routing, IP-protected backend, user system, integrated SQLite database with web admin, Markdown parser, jQuery and Bootstrap.

  Sources   Download

(MIT or GPL-3.0+)

The Requires

 

framework php skeleton jquery bootstrap markdown apache sqlite attogram

12/06 2016

v0.5.7

0.5.7.0 https://github.com/attogram/attogram

The Attogram Framework

  Sources   Download

(MIT or GPL-3.0+)

The Requires

 

framework php skeleton jquery bootstrap markdown apache sqlite attogram

10/06 2016

v0.5.6

0.5.6.0 https://github.com/attogram/attogram

The Attogram Framework

  Sources   Download

(MIT or GPL-3.0+)

The Requires

 

framework php skeleton jquery bootstrap markdown apache sqlite attogram

08/06 2016

v0.5.4

0.5.4.0 https://github.com/attogram/attogram

The Attogram Framework

  Sources   Download

(MIT or GPL-3.0+)

The Requires

 

framework php skeleton jquery bootstrap markdown apache sqlite attogram

07/06 2016

v0.5.3

0.5.3.0 https://github.com/attogram/attogram

The Attogram Framework

  Sources   Download

(MIT or GPL-3.0+)

The Requires

 

framework php skeleton jquery bootstrap markdown apache sqlite attogram

02/06 2016

v0.5.2

0.5.2.0 https://github.com/attogram/attogram

The Attogram Framework

  Sources   Download

(MIT or GPL-3.0+)

The Requires

 

The Development Requires

framework php skeleton jquery bootstrap markdown apache sqlite attogram

02/06 2016

v0.5.1

0.5.1.0 https://github.com/attogram/attogram

The Attogram Framework

  Sources   Download

(MIT or GPL-3.0+)

The Requires

 

The Development Requires

framework php skeleton jquery bootstrap markdown apache sqlite attogram