PHPackages                             lincsanders/yii\_strana\_adapter - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. lincsanders/yii\_strana\_adapter

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

lincsanders/yii\_strana\_adapter
================================

Simple Strana adapter for pagination of Yii records

046PHP

Since Feb 20Pushed 11y ago1 watchersCompare

[ Source](https://github.com/lincsanders/yii_strana_adapter)[ Packagist](https://packagist.org/packages/lincsanders/yii_strana_adapter)[ RSS](/packages/lincsanders-yii-strana-adapter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

YiiStranaAdapter
================

[](#yiistranaadapter)

Yii record adapter for Strana pagination composer package.

Installation
============

[](#installation)

Include the repository and require in your composer.json file:

```
"require": {
    "lincsanders/yii_strana_adapter": "dev-master",
    ...
}

```

For more info, see [https://packagist.org/packages/lincsanders/yii\_strana\_adapter](https://packagist.org/packages/lincsanders/yii_strana_adapter)

Usage
=====

[](#usage)

The usage is a little clunky, but it works. This is essentially a modified version of the "use your own adapter" example straight from . Substitute "User::model()" with your own stuff.

```
$strana = new \Strana\Paginator();
$configHelper = new \Strana\ConfigHelper($strana->perPage(5)->getConfig());
$adapter = new YiiStranaAdapter(User::model(), $configHelper);
$paginator = $strana->make(User::model(), $adapter);

```

This can be used in conjunction with something like the below to create your own paginated search results:

```
$criteria = new CDbCriteria;

if($_GET['search']){
    $criteria->addSearchCondition('username', $_GET['search']);
}

$model = User::model();
$model->setDbCriteria($criteria);

$strana = new \Strana\Paginator();
$configHelper = new \Strana\ConfigHelper($strana->perPage(5)->getConfig());
$adapter = new YiiStranaAdapter($model, $configHelper);
$paginator = $strana->make($model, $adapter);

```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9fbdd529bbc22a5e55969b4c80f1424872fbb27a7e401171345efd819919311f?d=identicon)[lincsanders](/maintainers/lincsanders)

---

Top Contributors

[![lincsanders](https://avatars.githubusercontent.com/u/496498?v=4)](https://github.com/lincsanders "lincsanders (9 commits)")

### Embed Badge

![Health badge](/badges/lincsanders-yii-strana-adapter/health.svg)

```
[![Health](https://phpackages.com/badges/lincsanders-yii-strana-adapter/health.svg)](https://phpackages.com/packages/lincsanders-yii-strana-adapter)
```

###  Alternatives

[pcinaglia/laraupdater

LaraUpdater allows your Laravel application to auto-update itself.

17196.3k](/packages/pcinaglia-laraupdater)[gburtini/distributions

PHP implementation of a number of statistical probability distributions: normal, beta, gamma, etc.

59504.1k1](/packages/gburtini-distributions)[fergusean/nusoap

NuSOAP re-packaged for Packagist/Composer

281.3M10](/packages/fergusean-nusoap)

PHPackages © 2026

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