PHPackages                             otruyencms/otruyen-core - 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. otruyencms/otruyen-core

ActiveLibrary

otruyencms/otruyen-core
=======================

Ophim's core features

01PHP

Since Nov 16Pushed 1y ago1 watchersCompare

[ Source](https://github.com/dochicong/otruyencmss)[ Packagist](https://packagist.org/packages/otruyencms/otruyen-core)[ RSS](/packages/otruyencms-otruyen-core/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Server Requirements:
====================

[](#server-requirements)

- Laravel Framework 8.
- PHP 7.3 or higher.

    - Configure `php.ini`:

    ```
    max_input_vars=100000

    ```
- MySQL 5.7 or higher.

Add-on &amp; Themes:
====================

[](#add-on--themes)

- Home: [truyenplay](https://truyenplay.com)
- Admin: [Demo.truyenplay/admin](https://truyenplay.com/admin)
- Free Movies Data: [truyenplay](https://truyenplay.com)
- Add-on:

    - [OPhim Crawler](https://github.com/truyenplay)
- Theme: [MORE...](https://truyenplay.com)

Installation:
=============

[](#installation)

1. CD to project root and run: `composer require hacoidev/ophim-core -W`
2. Configuration your database connection information in file `.env`
3. Then, run command: `php artisan ophim:install`
4. Change app\\Models\\User:

```
use Ophim\Core\Models\User as OphimUser;

class User extends OphimUser {
    use HasApiTokens, HasFactory, Notifiable;
    // ...
}
```

5. Create new user by command: `php artisan ophim:user`
6. Remove this route definition in routes/web.php

```
Route::get('/', function () {
    return view('welcome');
});
```

7. Run `php artisan optimize:clear`

Update:
=======

[](#update)

1. CD to project root and run: `composer update hacoidev/ophim-core -W`
2. Then, run command: `php artisan ophim:install`
3. Run `php artisan optimize:clear`
4. Clear PHP Opcache in server (if enabled)

Note
====

[](#note)

- Configure a production environment file `.env`

    - `APP_NAME=your_app_name`
    - `APP_ENV=production`
    - `APP_DEBUG=false`
    - `APP_URL=https://your-domain.com`
- Configure timezone `/config/app.php`

    - `'timezone' => 'Asia/Ho_Chi_Minh'`
    - `'locale' => 'vi'`
- Command CMS

    - `php artisan ophim:menu:generate` : Generate menu
    - `php artisan ophim:episode:change_domain` : Change episode domain play stream

Command:
========

[](#command)

- Generate menu categories &amp; regions: `php artisan ophim:menu:generate`

Reset view counter:
===================

[](#reset-view-counter)

- Setup crontab, add this entry:

```
* * * * * cd /path/to/project && php artisan schedule:run >> /dev/null 2>&1

```

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity16

Early-stage or recently created project

 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/8157efff1d83b812f677ef518bcf0182049e6fa9873a74bd91b87a8ba9404cf7?d=identicon)[colenao2000](/maintainers/colenao2000)

---

Top Contributors

[![dochicong](https://avatars.githubusercontent.com/u/30260289?v=4)](https://github.com/dochicong "dochicong (2 commits)")

### Embed Badge

![Health badge](/badges/otruyencms-otruyen-core/health.svg)

```
[![Health](https://phpackages.com/badges/otruyencms-otruyen-core/health.svg)](https://phpackages.com/packages/otruyencms-otruyen-core)
```

PHPackages © 2026

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