lotfio/timino

This package is abandoned and no longer maintained. No replacement package was suggested.

Timino is a simple, lightweight and S.O.L.I.D PHP MVC framework

Installs: 14

Dependents: 0

Suggesters: 0

Security: 0

Stars: 9

Watchers: 4

Forks: 4

Open Issues: 0

Type:framework

1.0.1 2018-01-12 11:07 UTC

This package is auto-updated.

Last update: 2020-01-25 14:27:07 UTC


README

logo

Licence PHP7 version build coverage downloads

Introduction :

Timino is a simple, lightweight and S.O.L.I.D PHP MVC framework. Easy to understand and suitable for small projects. In addition you don't need to learn a very complicated documentation Besides it is customizable so you can customize and add different functionality and services.

Features :

  • Simple and easy to understand.
  • Clean and documented code.
  • Tries to follows S.O.L.I.D principles.
  • Uses PHP >= 7.2
  • Psr-4 autoloading.
  • Tries to follow PSR coding guidelines.
  • Timino (console) for easy development.
  • Uses PDO for any database requests.
  • simple crud system (_select, _update, _delete, _insert)
  • Uses Services to perform different tasks.
  • Ability to create own services.
  • Ability to extends any PHP package with composer.

Requirements :

  • PHP 7.2 or newer versions
  • MySQL (if you work with databases)
  • mod_rewrite activated (Apache module of course)
  • basic knowledge of Composer for sure

Installation :

  • Via composer :
composer create-project lotfio/timino blog

Configuration :

Web server configuration

Apache

  • Apache rewrite module must be activated
  • Your apache config file for this application should look something like this :
<VirtualHost *:80>
    
    ServerAdmin  webmaster@localhost
    DocumentRoot /var/www/yourproject/public
    ServerName   yourproject.dev
     
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
    
    <Directory /var/www/yourproject/public>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>
    

</VirtualHost>

Nginx

  • If you are using nginx your config file should look like this :
server{
    listen       80 default_server;
    server_name  yourproject.dev;
    error_log    /var/log/nginx/error.log;
    
    root /var/www/yourproject/public;
    
    server_tokens off;
    

    location / {
        index index.php index.html index.htm;
        try_files $uri /$uri /index.php?$query_string;
    }

    location ~ \.(php)$ {
        fastcgi_pass   unix:/var/run/php/php7.2-fpm.sock;
        fastcgi_index  index.php;
        fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params;
    }

}