templating
fig-standards
templating | fig-standards | |
---|---|---|
4 | 47 | |
23 | 12,509 | |
- | 0.1% | |
4.6 | 7.7 | |
8 months ago | 7 days ago | |
PHP | ||
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
templating
-
Which template engine do you use?
There are also some small template engines available like mustache or handlebars without big dependencies tree. I'm working on a templating abstraction to make this more easier to use any template engine you want so your controller dont need to care about it: https://github.com/schranz-templating/templating
-
First version of PHP Templating Abstraction released
It is supported via the Spiral View. The viewmanager by default will call Stempler you can test it out in the example spiral application running in examples/usages/spiral direcotory visiting /spiral-view will call the template here: https://github.com/schranz-templating/templating/blob/0.1/examples/usages/spiral/app/views/base.dark.php
fig-standards
- Moving PHP forward through collaboration and standards
-
A workaround to handle PSR-4 && WordPress Coding Standards at same time
The namespaces and class names must follow this example.
-
Materials/Topics for Senior dev new to PHP
I would familiarize yourself with the following PHP standards: https://www.php-fig.org
-
Autoloading, coding standards and file structure in WordPress plugin development
The PHP Standard Recommendation, or PSR for short, from the aforementioned PHP-FIG.
- PHP-FIG considering raising money to cover $30/year costs
- PHP-FIG planning to raise money to cover $30/year costs
-
PSR-4 Autoloading Woes
That's what happens if you use a PSR-4 autoloader and not utilise PSR-4 in your project structure ๐ So either use PSR-0 or properly use PSR-4.
- PHPDoc, PSR-5 and commenting inside the code
- PHP-Fig Is Down
-
I donโt get all the hate for PHP and at this point I am too afraid to ask.
PHP really "got it's act together" in my view when packagist and composer (which are PHP's equivalent of npm) became mainstream and with the release of the PSR community standards. We were admittedly a little behind the curve with regards to package managers but with standardised formats and not having to copy and paste zip file libraries anymore, PHP received a new lease of life.
What are some alternatives?
Plates - Native PHP template system
sulu - Core framework that implements the functionality of the Sulu content management system
Spiral Framework - High-Performance PHP Framework
laravel-totem - Manage Your Laravel Schedule From A Web Dashboard
fluid - Fluid is an open-source .NET template engine based on the Liquid template language.
Symfony - The Symfony PHP framework
headless-wp-starter - ๐ช WordPress + React Starter Kit: Spin up a WordPress-powered React app in one step
hexagonal-architecture-study - Project "Rabbit Hole": Dig into the rabbit hole of Hexagonal Architecture.
Brick\Money - A money and currency library for PHP
tinybutstrong - TBS is a PHP template engine for pro and beginners. Only 1 class with few methods properties, but it can do may things for any text templates, including HTML and XML. The only engine that enables W3C compliant templates. It has many plugins including OpenTBS.
app - Yii3 application template