PHPackages                             jeyroik/extas-templates - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. jeyroik/extas-templates

ActiveLibrary[Templating &amp; Views](/categories/templating)

jeyroik/extas-templates
=======================

Extas template package

1.1.0(6y ago)07294PHPCI failing

Since Jul 4Pushed 6y agoCompare

[ Source](https://github.com/jeyroik/extas-templates)[ Packagist](https://packagist.org/packages/jeyroik/extas-templates)[ RSS](/packages/jeyroik-extas-templates/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (7)Versions (11)Used By (4)

[![tests](https://github.com/jeyroik/extas-templates/workflows/PHP%20Composer/badge.svg?branch=master&event=push)](https://github.com/jeyroik/extas-templates/workflows/PHP%20Composer/badge.svg?branch=master&event=push)[![codecov.io](https://camo.githubusercontent.com/2d6d25497f76746c3efb79acc6d186370f31f7d5699cc69c043471ed88c3d1ae/68747470733a2f2f636f6465636f762e696f2f67682f6a6579726f696b2f65787461732d74656d706c617465732f636f7665726167652e7376673f6272616e63683d6d6173746572)](https://camo.githubusercontent.com/2d6d25497f76746c3efb79acc6d186370f31f7d5699cc69c043471ed88c3d1ae/68747470733a2f2f636f6465636f762e696f2f67682f6a6579726f696b2f65787461732d74656d706c617465732f636f7665726167652e7376673f6272616e63683d6d6173746572)[![PHPStan Enabled](https://camo.githubusercontent.com/441b5874ce4df0a2defc892979c96c46889b69cb32119d04f0b48626349f8bc9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d656e61626c65642d627269676874677265656e2e7376673f7374796c653d666c6174)](https://github.com/phpstan/phpstan)[![](https://camo.githubusercontent.com/24f8b73723cedb131564e21c801088923c1c3a6b6e503a7b3b870a1c97071d39/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f32643066393462326165313631653538626335302f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/jeyroik/extas-templates/maintainability)

DEPRECATED
==========

[](#deprecated)

Пакет считается устаревшим. Предпочтительнее использовать [extas-samples](https://github.com/jeyroik/extas-samples "Extas samples").

Описание
========

[](#описание)

Пакет с extas-совместимой сущностью "Шаблон".

Установка
=========

[](#установка)

`composer require jeyroik/extas-templates:*`

Использование
=============

[](#использование)

```
use extas\interfaces\templates\IHasTemplate;

use extas\components\Item;
use extas\components\repositories\Repository;
use extas\components\templates\THasTemplate;

class CarTemplatesRepository extends Repository
{
}

class Car extends Item implements IHasTemplte
{
    use THasTemplate;

    public function getTemplateRepository()
    {
        return new CarTemplatesRepository();
    }
}

/**
 * @var $templateRepo CarTemplatesRepository
 */
$mazda = new Template(['name' => 'mazda', 'description' => 'Mazda model']);
$templateRepo->create($mazda);

$car = new Car([IHasTemplate::FIELD__TEMPLATE => 'mazda']);
echo $car->getTemplate()->getDescription(); // 'Mazda model'
```

###  Health Score

30

—

LowBetter than 65% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~32 days

Recently: every ~10 days

Total

10

Last Release

2207d ago

Major Versions

0.1.0 → 1.0.02020-03-06

### Community

Maintainers

![](https://www.gravatar.com/avatar/2aaec5c4bade6ab2b5d1a0f7d97ab4e0ff2ce83937f76499b2888ad16cde5e04?d=identicon)[jeyroik](/maintainers/jeyroik)

---

Top Contributors

[![jeyroik](https://avatars.githubusercontent.com/u/6348124?v=4)](https://github.com/jeyroik "jeyroik (18 commits)")

---

Tags

extasphptemplates

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/jeyroik-extas-templates/health.svg)

```
[![Health](https://phpackages.com/badges/jeyroik-extas-templates/health.svg)](https://phpackages.com/packages/jeyroik-extas-templates)
```

###  Alternatives

[mustache/mustache

A Mustache implementation in PHP.

3.3k44.6M291](/packages/mustache-mustache)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[whitecube/nova-flexible-content

Flexible Content &amp; Repeater Fields for Laravel Nova.

8053.0M25](/packages/whitecube-nova-flexible-content)[mopa/bootstrap-bundle

Easy integration of twitters bootstrap into symfony2

7042.9M33](/packages/mopa-bootstrap-bundle)[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3871.2M](/packages/limenius-react-bundle)[symfony/ux-icons

Renders local and remote SVG icons in your Twig templates.

545.8M69](/packages/symfony-ux-icons)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
