PHPackages                             bearcms/universal - 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. bearcms/universal

ActiveLibrary

bearcms/universal
=================

Bear CMS Universal

v1.0.0(6y ago)03MITPHPPHP &gt;=7.1.0CI failing

Since Mar 5Pushed 6y ago1 watchersCompare

[ Source](https://github.com/bearcms/universal)[ Packagist](https://packagist.org/packages/bearcms/universal)[ Docs](https://bearcms.com/)[ RSS](/packages/bearcms-universal/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

Bear CMS Universal
==================

[](#bear-cms-universal)

A client package for Bear CMS. It's a perfect choice for developers who want to provide content editing functionality while taking full ownership of the output code. Also suitable for building websites from HTML templates.

Installation
------------

[](#installation)

### Install via Composer

[](#install-via-composer)

```
composer require bearcms/universal
```

The library's autoloader will be automatically run when including `vendor/autoload.php`.

You can quick start a new project by running

```
composer create-project bearcms/universal-app [my-app-name]

```

### Download a ZIP file

[](#download-a-zip-file)

Download the latest release ZIP file from from the [releases page](https://github.com/bearcms/universal/releases). Then unzip and include the library's autoloader.

```
include 'path-to-bearcms-universal-client/autoload.php';
```

### Download a PHAR file

[](#download-a-phar-file)

Download the latest release PHAR file from from the [releases page](https://github.com/bearcms/universal/releases). Then include itclude it in your project.

```
include 'path-to-bearcms-universal-client.phar';
```

Usage
-----

[](#usage)

The first step is to create and configure the BearCMS\\Universal instance.

```
$bearCMS = new BearCMS\Universal([
    'dataDir' => __DIR__ . '/../bearcms/data', // The directory where the website data will be stored
    'logsDir' => __DIR__ . '/../bearcms/logs', // The directory for logs
    'appSecretKey' => 'TODO' // Get your app secret key from https://bearcms.com/
]);
```

Then use `captureStart()` and `captureSend()` to automatically capture the output HTML and send it to the Bear CMS client.

```
$bearCMS->captureStart();
// Place the HTML code of your page here (or include it from other file)
$bearCMS->captureSend();
```

Alternatively you can use ...

```
$response = $bearCMS->makeResponse('SOME HTML CODE');
$bearCMS->send($response);
```

Any `` HTML tags will be automatically updated for preview or editing (if there is a logged in administrator).

A full list of the supported HTML tags is available at

License
-------

[](#license)

This project is licensed under the MIT License. See the [license file](https://github.com/bearcms/universal/blob/master/LICENSE) for more information.

Author
------

[](#author)

This package is created and maintained by the Bear CMS team. Feel free to contact us at  or [bearcms.com](https://bearcms.com/).

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

Total

2

Last Release

2420d ago

Major Versions

v0.1.0 → v1.0.02019-09-29

### Community

Maintainers

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

---

Top Contributors

[![ivopetkov](https://avatars.githubusercontent.com/u/13205385?v=4)](https://github.com/ivopetkov "ivopetkov (5 commits)")

---

Tags

universalBear CMS

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bearcms-universal/health.svg)

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

###  Alternatives

[nickurt/laravel-postcodeapi

Universal PostcodeApi for Laravel 11.x/12.x/13.x

97221.2k](/packages/nickurt-laravel-postcodeapi)[ashleydawson/simple-pagination

Simple, lightweight and universal service that implements pagination on collections of things

18161.2k2](/packages/ashleydawson-simple-pagination)[matthew-p/docker-server

Universal docker server, Nginx, PHP-FPM, MySql, Redis

112.8k](/packages/matthew-p-docker-server)

PHPackages © 2026

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