First Steps

Get up and running quickly with Docker if you want to preview Tina4 quickly without adding additional dependencies to your operating system. Please take a look at the Setting up your Environment section to get all the prerequisites required for Tina4.

Tina4 is a lightweight routing and templating system which allows you to write websites and API applications very quickly. This is not another framework. Keep things simple and efficient. Tina4 is perfect if you want to build a website, run a CMS, create APIs or if you want to learn a structured PHP framework.

Tina uses the following methods to make development quicker:

* PHP 7.3 or greater built in web server
* Twig Templating - no configuration needed
* OpenAPi & Swagger annotated routes for UI
* Simple code layout and directory structure

Docker

In your IDE command line, try this piece of code and hit enter:

 Linux  Mac

docker run -v $(pwd):/app tina4stack/php composer require tina4stack/tina4php
docker run -v $(pwd):/app tina4stack/php composer exec tina4 initialize:run
docker run -v $(pwd):/app -p7145:7145 tina4stack/php composer start  

 Windows

In your IDE command line, try this piece of code and hit enter:

docker run -v %cd%:/app tina4stack/php composer require tina4stack/tina4php
docker run -v %cd%:/app tina4stack/php composer exec tina4 initialize:run
docker run -v %cd%:/app -p7145:7145 tina4stack/php composer start

Composer

In your IDE comand line, try this piece of code and hit enter:

composer require tina4stack/tina4php
composer exec tina4 initialize:run
composer start

What's in the box?

How do I learn to work with Tina4?

Down the rabbit hole is a comprehensive tutorial on how to get started with PHP programming leading into the core concepts of Tina4 and how to get a software development environment up and running.


Join our Slack Channel to participate and receive all the latest builds

Powered by ComboStrap