Get the framework
Recommended: official bundles (zip / tar.gz with MD5 and SHA-256) from this site—see Download. The archive contains a single top-level phptide directory matching the phptide/ folder in this repository.
Other options:
- GitHub: phptide/framework
- CDN mirror: phptide-2.2.2.tar.gz
Install
Extract PhpTide and place the project in your site root (or the directory your virtual host points at). Point the web root at the project’s public directory.
Sample Nginx config
bash
server {
listen 80;
server_name phptide.dev;
index index.php index.html index.shtml;
root /path/www/web_project/public; # Point to the project’s public/ directory
location /{
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php/$1 last;
break;
}
}
location ~ \.php($|/) {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi.conf;
}
}Notes
- On Apache, enable the
rewritemodule. - After deployment, confirm the document root targets
public— routing depends on it.