PHPackages                             aspott/ytk - 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. aspott/ytk

ActiveLibrary

aspott/ytk
==========

YTK - A Yii Toolkit

v1.1.6(1y ago)047↓100%MITPHPPHP &gt;=5.3.0

Since Dec 14Pushed 1y ago1 watchersCompare

[ Source](https://github.com/AndreasPott/ytk)[ Packagist](https://packagist.org/packages/aspott/ytk)[ RSS](/packages/aspott-ytk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (8)Used By (0)

YTK - Yii Toolkit
=================

[](#ytk---yii-toolkit)

> Version 1.1.6, December, 1st, 2024

```
                  ___           ,-.
        ,---,   ,--.'|_     ,--/-/|
       /_ ./|   |--| :,'  ,--. :/ |
 ,---, |--' :   :--: ' :  :--: ' /
/___/ \.--: | .;__,'  /   |--'  /
 .--\  \ ,' ' |--|   |    '--|  :
  \--;  `  ,' :__,'| :    |--|   \
   \--\    '    '--: |__  '--: |. \
    '--\   |    |--| '.'| |--| ' \ \
     \--;  ;    ;--:    ; '--: |--'
      :--\  \   |--,   /  ;--|,'
       \--' ;    ---`-'   '--'
        `--`  Y i i  T o o l k i t

```

Copyright (c) 2013-2024 Andreas Pott

About
=====

[](#about)

YTK is a collection of functions and widgets for the php web framework Yii (version 1.11). The toolkit is designed to be used along with the bootstrap extension for Yii.

Install (manually)
==================

[](#install-manually)

Copy this project to the extensions folder of the yii projects under `protected\extensions\ytk`

Install using composer
======================

[](#install-using-composer)

ytk can be installed using composer from packagist as `"require": "aspott/ytk"`

Configure
=========

[](#configure)

To use the widgets from ytk, register ytk for autoloading in the file `protected\config\main.php` with the following code snippet (after manuall install)

```
// autoloading model and component classes
'import'=>array(
	'application.models.*',
	'application.components.*',
	'application.extensions.ytk.*',     // array(
    // [...] some components

    // renderer component for markdown pages simiar to the views/site/page rendering
    'viewRenderer' => array(
        'class'=>'YtkMdViewRenderer',
    ),
    // [...] some more components
),

```

To use the javascript components/assets in the package, add the ytk component to the main configuration file under `components`

```
'ytk'=>array(
    'class'=>'application.extensions.ytk.Ytk',
),

```

Also, here this is reducted to 'ytk.Ytk' when using the aliasing.

Additionally, the ytk component (with asset management must be initialized in protected/views/layout/main.php directly after `` (and if it is used right after the respective init call for the bootstrap components) with

```

```

Usage of components
===================

[](#usage-of-components)

The provided widgets (here `ytktile`) of the package can be used as follows:

```
$this->widget('application.extensions.ytk.YtkTile', array(
    'header'=>'Min Example',
    'labels'=>array('X'=>'primary'),
    'body'=>'Some content',
));

```

With aliasing, also the name of the widgets is reduced to `'ytk.YtkTile'`.

Functions from the namespace `Ytk` can be simply called by prefixing it with `Ytk::`

```
echo Ytk::EncodeSuccess('myLabel');

```

Prior to using java script extensions (such as chart.js), add the following line in each view file

```
Yii::app()->ytk->register('chartjs');

```

Acknowledgement
===============

[](#acknowledgement)

Ytk is shipped with a collection of php and javascript libraries under either MIT or LGPL license. As these libraries are exposed in the asset directory of the web projects, all thrid party code is fully available in source code.

License
=======

[](#license)

The YTK is licensed under MIT license, a weak copyleft open source license.

The package contains several libaray including chart.js, some of its plug-ins, easymde, jspdf, and mermaid. The authors of there libraries are hereby gratefully acknowledged for their outstanding work.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 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 ~180 days

Recently: every ~261 days

Total

7

Last Release

524d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a25997494137c868b78bc1a6769d86411a71e45121c5dd88c19fc8750e2f7e4d?d=identicon)[aspott](/maintainers/aspott)

---

Top Contributors

[![AndreasPott](https://avatars.githubusercontent.com/u/27013901?v=4)](https://github.com/AndreasPott "AndreasPott (1 commits)")

### Embed Badge

![Health badge](/badges/aspott-ytk/health.svg)

```
[![Health](https://phpackages.com/badges/aspott-ytk/health.svg)](https://phpackages.com/packages/aspott-ytk)
```

PHPackages © 2026

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