PHPackages                             positronth/jarm.com - 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. positronth/jarm.com

ActiveProject

positronth/jarm.com
===================

A Micro-CMS designed to dynamic web applications. support multiple sub-domains. Fast, simple and lightweight.

203PHP

Since Aug 28Pushed 8y ago2 watchersCompare

[ Source](https://github.com/positronth/jarm.com)[ Packagist](https://packagist.org/packages/positronth/jarm.com)[ RSS](/packages/positronth-jarmcom/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Jarm.com - Micro CMS v3.1
=========================

[](#jarmcom---micro-cms-v31)

[![Minimum PHP Version](https://camo.githubusercontent.com/ffb418825f1dba761ad97d97a2e896c37c7b62d8c2dbc305f138b6089efda8af/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253345253344253230372e312d3838393242462e737667)](https://php.net/) [![Minimum ImageMagick Version](https://camo.githubusercontent.com/1efac131f233a47480d4b24a3b2ee227219c2b3c3df338ddaaa08e4706cdf51d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f496d6167654d616769636b2d253345253344253230362d3432386263612e737667)](http://imagemagick.org) [![Minimum MongoDB Version](https://camo.githubusercontent.com/1bce39bd7499bbcd2f9cdcf78922b9d3eb4c7f0813d0f53491210031d9b1cf6e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d6f6e676f44422d253345253344253230332e342d3766633835372e737667)](https://www.mongodb.com)

[Docker Image](https://hub.docker.com/r/positron)
-------------------------------------------------

[](#docker-image)

- [positron/php](https://hub.docker.com/r/positron/php/) v. 7.1.8 (with PECL/MongoDB, ImageMagick)
- [positron/nginx](https://hub.docker.com/r/positron/nginx/) v. 1.12.1
- [positron/mongo](https://hub.docker.com/r/positron/mongo/) v. 3.4.7

[jarm.com](https://jarm.com)
----------------------------

[](#jarmcom)

[![Screenshot](https://github.com/positronth/jarm.com/raw/master/Screenshot.png)](https://github.com/positronth/jarm.com/raw/master/Screenshot.png)

การทำงาน
--------

[](#การทำงาน)

- jarm.com, \*.jarm.com - เรียกใช้งาน [php/start.php](https://github.com/positronth/jarm.com/blob/master/php/start.php)
- cdn.jarm.com/\* - เรียกใช้งาน files/cdn/\*
- f\*.jarm.com/\* - เรียกใช้งาน files/upload/\*
- upload รูปภาพ/ไฟล์ ในแต่ละเครื่องผ่าน port:81 - เรียกใช้งาน [php/upload.php](https://github.com/positronth/jarm.com/blob/master/php/upload.php)

.

การเรียกใช้งานภายใน App
-----------------------

[](#การเรียกใช้งานภายใน-app)

ตัวอย่าง: จากคอนฟิค(สำหรับซับโดเมน ent.jarm.com)

> 'ent'=&gt;\['app'=&gt;'news','arg'=&gt;\['cate'=&gt;4,'hot'=&gt;2\],\],

มีการเรียกใช้หน้าเว็บด้วยลิ้งค์นี้

>

จะได้ว่า

> \[app-name\] = news
> \[first-path\] = view

โดยเรียกใช้งาน App ชื่อว่า news และ Method ชื่อว่า \_view (ชื่อต้องขึ้นต้นด้วย \_ เสมอ) และส่งตัวแปร arg ระบบจะค้นหาไฟล์เหล่านี้ โดยถ้าหากเจอไฟล์ใดก่อน ก็จะโหลดไฟล์นั้นมาใช้งานทันที (ระบบจะแปลงคำให้ขึ้นต้นด้วยตัวใหญ่เสมอ)

- php/App/News/View.php
- php/App/News/Service.php
- php/App/News.php

เมื่อ require\_once ไฟล์ดังกล่าวมาแล้ว จะทำการค้นหา method ต่อไปนี้

- get\_view (เฉพาะการเรียกใช้แบบ GET จาก $\_SERVER\['REQUEST\_METHOD'\])
- post\_view (เฉพาะการเรียกใช้แบบ POST จาก $\_SERVER\['REQUEST\_METHOD'\])
- \_view (หากไม่เจอ method จากด้านบน)

หมายเหตุ

- php/App/News/View.php เหมาะสำหรับ app ที่ method มีขนาดใหญ่ หรือโค๊ดจำนวนมาก
- php/App/News/Service.php เหมาะสำหรับ app ขนาดกลาง ที่มีบาง method มีขนาดเล็กและใหญ่ ผสมกัน
- php/App/News.php เหมาะสำหรับ app ขนาดเล็ก ที่มี method น้อยๆ หรือโค๊ดสั้นๆ

```
->route([
  /**
  * ค่าเริ่มต้น:
  * - $key.app = $key (หากไม่กำหนด จะเรียกใช้ app ชื่อเดียวกับ $key [sub domain])
  * - $key.enable = true  (เปิดใช้งานโดยอัตโนมัติ ถ้ามีไฟล์ชื่อเดียวกับ app อยู่)
  * - $key.func = [first-path] (เรียกใช้ method พื้นฐาน ในกรณีที่ App ไม่มี method ที่ชื่อเดียวกับ _[first-path] )
  */
  'asiangames'=>['app'=>'news','arg'=>['cate'=>25],],
  'beauty'=>['app'=>'news','arg'=>['cate'=>27,'hot'=>31],],
  'chat'=>['enable'=>false],
  'eat'=>['app'=>'news','arg'=>['cate'=>32,'hot'=>31],],
  'ent'=>['app'=>'news','arg'=>['cate'=>4,'hot'=>2],],
  'game'=>['app'=>'news','arg'=>['cate'=>2,'hot'=>90],],
  'healthy'=>['app'=>'news','arg'=>['cate'=>34,'hot'=>31],],
  'home'=>['app'=>'news','arg'=>['cate'=>33,'hot'=>90],],
  'horo'=>['app'=>'news','arg'=>['cate'=>20,'hot'=>90],],
  'knowledge'=>['app'=>'news','arg'=>['cate'=>30,'hot'=>31],],
  'korea'=>['app'=>'news','arg'=>['cate'=>26,'hot'=>2],],
  'live'=>['app'=>'news','arg'=>['cate'=>35,'hot'=>3],],
  'lotto'=>['app'=>'news','arg'=>['cate'=>22],],
  'movie'=>['app'=>'news','arg'=>['cate'=>5,'hot'=>31],],
  'music'=>['app'=>'news','arg'=>['cate'=>24,'hot'=>31],],
  'pr'=>['app'=>'news','arg'=>['cate'=>28,'hot'=>31],],
  'tech'=>['app'=>'news','arg'=>['cate'=>3,'hot'=>31],],
  'weather'=>['app'=>'news','arg'=>['cate'=>21],],
])
```

.

การเรียกใช้งานผ่าน Nginx
------------------------

[](#การเรียกใช้งานผ่าน-nginx)

**ตัวอย่างการเรียกใช้งานผ่าน Nginx + PHP-FPM บางส่วน**

```
server {
    listen  80;
    location / {
        fastcgi_pass 127.0.0.1:9000;
        fastcgi_param SCRIPT_FILENAME /var/www/jarm.com/php/start.php;
        include fastcgi_params;
    }
}

```

```
server {
    listen  81;
    location / {
        fastcgi_pass 127.0.0.1:9000;
        fastcgi_param SCRIPT_FILENAME /var/www/jarm.com/php/upload.php;
        include fastcgi_params;
    }
}

```

Positron
Sarawut Chongrakchit [Facebook](https://www.facebook.com/positron.th)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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/94b887cd62b53357ee9f4f47e15d103515275ff0925b1ed5879503ef977cd58c?d=identicon)[positron](/maintainers/positron)

### Embed Badge

![Health badge](/badges/positronth-jarmcom/health.svg)

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

PHPackages © 2026

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