Download the PHP package timonf/twigony-framework-bundle without Composer

On this page you can find all versions of the php package timonf/twigony-framework-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package twigony-framework-bundle

{{ Twigony FrameworkBundle }}

SensioLabsInsight

Twigony is inspired by Symfony's TemplateController. Twigony provides default controller actions for common use cases. You are able to configure Twigony through your routing.yml file (like Symfony's TemplateController).

Goals of Twigony:


Information: This project is in development. If you want to support me or this project contact me on Slack (My name: @timon). If you don't have access to Slack, have a look here.


Installation

Create an empty project and use composer to install this bundle:

Then, enable the bundle by adding it to the list of registered bundles in the app/AppKernel.php file of your project:

Documentation

Example usages

Multiple static pages (TemplateController)

  1. Create two or more Twig templates (like app/views/info/hello.html.twig and app/views/info/about.html.twig)
  2. Extend your routing.yml:

    info_pages:
        path: '/info/{page}'
        defaults:
            _controller: 'twigony.template_controller:templateAction'
            template:    'info/{page}.html.twig'

List entities (DoctrineORMController)

  1. Create an entity or use an existing one (e .g. src/AppBundle/Entity/Post.php)
  2. Create a template (like app/views/posts/all.html.twig)
  3. Extend your routing.yml:

    posts:
        path: '/posts'
        defaults:
            _controller: 'twigony.orm_controller:listAction'
            template: 'posts/all.html.twig'
            entity: 'AppBundle\Entity\Post'
            options:
                as: 'posts' # Access variable for your Twig template. You can use it this way `{% for post in posts %}…`
                perPage: 50

Show single entity (DoctrineORMController)

  1. Create an entity or use an existing one (e .g. src/AppBundle/Entity/Post.php)
  2. Create a template (like app/views/posts/show.html.twig)
  3. Extend your routing.yml:

    show_post:
        path: '/posts/{id}' # Make sure, you are using "id" as id parameter!
        defaults:
            _controller: 'twigony.orm_controller:viewAction'
            template: 'posts/show.html.twig'
            entity:   'AppBundle\Entity\Post'
            options:
                as: 'post' # Access variable for your Twig template. You can use it this way `{{ post.title }}…`

All versions of twigony-framework-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.0
doctrine/orm Version ^2.5
swiftmailer/swiftmailer Version ^5.4
symfony/form Version ~2.8|~3.0|~4.0
symfony/framework-bundle Version ~2.8|~3.0|~4.0
symfony/http-foundation Version ~2.8|~3.0|~4.0
symfony/http-kernel Version ~2.8|~3.0|~4.0
symfony/property-access Version ~2.8|~3.0|~4.0
symfony/security Version ~2.8|~3.0|~4.0
symfony/templating Version ~2.8|~3.0|~4.0
twig/twig Version ~1.26|~2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package timonf/twigony-framework-bundle contains the following files

Loading the files please wait ....