Giter VIP home page Giter VIP logo

transapp's Introduction

TransApp

Description

TransApp is an application based on the Silex micro framework designed to facilitate the integration of websites in Symfony 2.

Front developers can integrate directly PSD templates in Twig format without the need to use the Symfony 2 framework.

TransApp can also be used for static websites that requires multilingual

Requirements

TransApp is only supported on PHP 5.3.3 and up.

How I can use TransApp ?

The front developper can only work on the app/resources folder:

  • config folder: is for configuration per environment(dev, prod)
  • translations folder: is for translations catalogues
  • views folder: is for TWIG views

The must important here is the config folder, config files is on JSON format, reason to choose the JSON is that all front developers already handle this format, so the structure is as follows:

{
    "config": {
        "twig": {
            "vars": {
                "app_name": "TransApp"
            }
        },
        "routing": {
            "locales": ["en", "fr"],
            "default_locale": "en",
            "routes": {
                "transapp_homepage": {
                    "paths": {
                        "transapp_homepage_base": "/", 
                        "transapp_homepage_index": "/index.html"
                    }, 
                    "template": "main/index.html.twig"
                }
            }
        }
    }
}

Under the vars key you can put all the variables you want in TWIG tamplates and you can access to him like that: app.twig.twigvars.app_name;

locales key is to set the locales that your application support(en, fr, es, ar, ...);

default_locale set the default locale of the app, when the locale is messing in the URL this is the locale that be using by the app;

This documentation is in progress ....

transapp's People

Contributors

jbinfo avatar aitboudad avatar

Watchers

 avatar James Cloos avatar Ahmada Khalid avatar El Mehdi Najeddine avatar

Forkers

jbinfo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.