PHPackages                             congraph/cms - 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. [Framework](/categories/framework)
4. /
5. congraph/cms

ActiveProject[Framework](/categories/framework)

congraph/cms
============

Congraph CMS Project.

v5.6.33(7y ago)177MITPHPPHP ^7.1.3

Since Feb 8Pushed 6y ago2 watchersCompare

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

READMEChangelogDependencies (8)Versions (61)Used By (0)

Congraph CMS Project
====================

[](#congraph-cms-project)

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

[](#installation)

Congraph CMS Installation has 3 parts: Laravel API installation, NodeJS Admin installation and Nuxt Frontend App Your folder structure should be:

```
/projects-folder
---- /new-project
--------- /new-project-api
--------- /new-project-admin
--------- /new-project-app

```

api folder for laravel app, admin folder for admin app and app folder for frontend Nuxt application

### Laravel API

[](#laravel-api)

With Composer install version dev-master:

```
composer create-project congraph/cms [folder-name] [version]
composer create-project congraph/cms new-project-api dev-master

```

This should pull all the files to your computer and install all php dependencies

Next thing you should do is setup your database, recomended naming for DB is to have 'cg\_' prefix, and have utf8\_general\_ci collation

Once you have DB setup, you should edit .env file. Go to root of your `new-project-api` folder and find `.env` file, if for some reason that file doesn't exist you can duplicate the `.env.example` file and name it .env Here you can find all the settings for your environment Settings that you need to set before going further are:

1. `DB_DATABASE` - name for your mysql database
2. `DB_USERNAME` - username for accessing mysql DB
3. `DB_PASSWORD` - password for that user (leave blank if you don't use password)
4. `USING_ELASTIC` - flag for use of elasticsearch DB, you will know if you are using it, otherwise set this to `false`. If you are using elasticsearch in your project you should uncomment EntityElasticServiceProvider in your app config `/config/app.php`.

Now we need to run few artisan commands in CMD/Terminal

1. First we want to generate a random App Key for the new application

```
php artisan key:generate

```

2. We want to generate optimized loader for laravel

```
php artisan optimize

```

1. Next we want to run Congraph init script that will a) migrate DB tables. b) run seeders for initaial DB data c) create 2 new client apps for Congraph.

```
php artisan congraph:init

```

This command should print out settings for 2 apps (Administration App, Frontend App). You should copy these settings to some file or note. Later you can find them in your database.

#### Setting WAMP Server for Laravel API

[](#setting-wamp-server-for-laravel-api)

1. choose a url for your API, recomended url should start with 'api.', for example `http://api.new-project.com` | `http://api.new-project.test` | `http://api.new-project.localhost` for local development
2. change hosts file: you can find it in `C:\Windows\System32\drivers\etc`
3. add new line in hosts file and write your new URL

```
127.0.0.1 api.new-project.localhost

```

4. change apache config for virtual hosts, you can find it in `C:\wamp64\bin\apache\apache2.4.33\conf\extra` config file `httpd-vhosts.conf`
5. add new virtual host

```

 ServerName api.new-project.localhost
 DocumentRoot "${INSTALL_DIR}/www/new-project/new-project-api/public"

   Options +Indexes +Includes +FollowSymLinks +MultiViews
   AllowOverride All
   Require local

```

6. restart WAMP Server
7. try going to that URL in your browser - you should get white page with "Laravel 5" heading

### NodeJS Administration App

[](#nodejs-administration-app)

We will install the admin app by cloning the repository from github

```
git clone git@github.com:congraphcms/admin.git [directory]
git clone git@github.com:congraphcms/admin.git new-project-admin

```

after cloning the repo we want to move to the admin project folder and run npm installer

```
npm install

```

This should install all dependencies to our local environment

We need to setup our environment like with laravel project. First we need to duplicate the `.env.example` file and name it `.env`.

```
cp .env.example .env

```

And now we can change the `.env` file. Settings we need to set:

1. `APP_URL` usually 'localhost:8080' but you can set it to any port or custom URL. Note: If you are using custom URL that is not localhost you need to have ngnix or appache set to proxy requests to your app. For local development it's recommended to stick to the localhost scheme.
2. `APP_PORT` should be same as port in `APP_URL`
3. `APP_HOST` should be same as host in `APP_URL`
4. `CG_URL` URL where we can find Congraph API (include the `/` at the end of URL)
5. `CG_CLIENT_ID` paste the value from Laravel APP for Administration App ID
6. `CG_CLIENT_SECRET` paste the value from Laravel APP for Administration App SECRET
7. `NODE_ENV` set to 'local' for local dev environment or 'production' for use on the production server

With these parameters set, we can run the Administration App

```
npm run start

```

Aplication should be available at your specified location default You should successfully login with credentials: email: password: secret

#### Troubleshoot

[](#troubleshoot)

1. If you get CORS policy error when trying to log in (check DevTools console for that). Go to your Laravel API project folder and then go to `/vendor/congraph/api/Http/routes.php` file Uncomment the 5. line `header('Access-Control-Allow-Origin: *');`Try to log in again.

### Nuxt Frontend App

[](#nuxt-frontend-app)

We will install the frontend app by cloning the repository from github

```
git clone git@github.com:congraphcms/nuxt-starter.git [directory]
git clone git@github.com:congraphcms/nuxt-starter.git new-project-app

```

after cloning the repo we want to move to the frontend project folder and run npm installer

```
npm install

```

This should install all dependencies to our local environment

We need to setup our environment like with laravel project. First we need to duplicate the `.env.example` file and name it `.env`.

```
cp .env.example .env

```

And now we can change the `.env` file. Settings we need to set:

1. `CG_URL` URL where we can find Congraph API (include the `/` at the end of URL)
2. `DEFAULT_LOCALE` the code for default locale used by App example: `en_US`

With these parameters set, we can run the Frontend App

```
npm run dev

```

Deployment
----------

[](#deployment)

### Info

[](#info)

3 Apps need deployment

- API app (api)
- Admin app (admin|cms)
- Frontend app

API Deployment
--------------

[](#api-deployment)

Requirements:

- MySQL | MariaDB installed
- Elasticsearch installed
- PHP ^7.0 installed

Steps:

- Copy files
- Configuration
- DB Seed

### Copy files

[](#copy-files)

1. Copy all files compressed in a .zip file including "vendor" folder if composer is not available on the server.
2. Unzip files on the server over ssh.
3. Set permissions for files. Hokosoft servers:

```
chown -R {$domain}:www /usr/local/www/data/{$domain}
chmod -R 750 /usr/local/www/data/{$domain}

```

### Configuration

[](#configuration)

1. Change .env file (mysql settings, es settings, index name, app key etc.)
2. If using apache server add this to .htaccess file in /public folder

```
    RewriteCond %{HTTP:Authorization} ^(.*)
    RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]

```

3. Change domain in app.php file in /config folder

### DB Seed

[](#db-seed)

1. Upload empty Congraph db to server and import it
2. Check DefaultWorkflowSeeder.php and OAuthSeeder.php in /database/seeds folder, if data is ok for this setup run the seeders
3. Run the seeders with

```
php artisan db:seed --class=DefaultWorkflowSeeder
php artisan db:seed --class=OAuthSeeder

```

Admin App Depoloyment
---------------------

[](#admin-app-depoloyment)

Requirements:

- node and npm installed on server
- preferably pm2 install on server

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 86.3% 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 ~35 days

Recently: every ~44 days

Total

58

Last Release

2833d ago

Major Versions

v4.2.11 → v5.0.02015-02-04

PHP version history (5 changes)v5.1.0PHP &gt;=5.5.9

v5.3.0PHP &gt;=5.6.4

v5.5.0PHP &gt;=7.0.0

v5.6.0PHP &gt;=7.1.3

v5.6.12PHP ^7.1.3

### Community

Maintainers

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

---

Top Contributors

[![taylorotwell](https://avatars.githubusercontent.com/u/463230?v=4)](https://github.com/taylorotwell "taylorotwell (3525 commits)")[![daylerees](https://avatars.githubusercontent.com/u/207870?v=4)](https://github.com/daylerees "daylerees (105 commits)")[![franzliedke](https://avatars.githubusercontent.com/u/249125?v=4)](https://github.com/franzliedke "franzliedke (92 commits)")[![jasonlewis](https://avatars.githubusercontent.com/u/829059?v=4)](https://github.com/jasonlewis "jasonlewis (48 commits)")[![sparksp](https://avatars.githubusercontent.com/u/243893?v=4)](https://github.com/sparksp "sparksp (37 commits)")[![cviebrock](https://avatars.githubusercontent.com/u/166810?v=4)](https://github.com/cviebrock "cviebrock (33 commits)")[![tobsn](https://avatars.githubusercontent.com/u/109529?v=4)](https://github.com/tobsn "tobsn (26 commits)")[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (25 commits)")[![crynobone](https://avatars.githubusercontent.com/u/172966?v=4)](https://github.com/crynobone "crynobone (22 commits)")[![bencorlett](https://avatars.githubusercontent.com/u/181919?v=4)](https://github.com/bencorlett "bencorlett (13 commits)")[![JeffreyWay](https://avatars.githubusercontent.com/u/183223?v=4)](https://github.com/JeffreyWay "JeffreyWay (12 commits)")[![neoascetic](https://avatars.githubusercontent.com/u/725836?v=4)](https://github.com/neoascetic "neoascetic (11 commits)")[![ericlbarnes](https://avatars.githubusercontent.com/u/116662?v=4)](https://github.com/ericlbarnes "ericlbarnes (11 commits)")[![jesseobrien](https://avatars.githubusercontent.com/u/865481?v=4)](https://github.com/jesseobrien "jesseobrien (10 commits)")[![mikelbring](https://avatars.githubusercontent.com/u/455383?v=4)](https://github.com/mikelbring "mikelbring (9 commits)")[![codler](https://avatars.githubusercontent.com/u/102052?v=4)](https://github.com/codler "codler (9 commits)")[![kapv89](https://avatars.githubusercontent.com/u/1023032?v=4)](https://github.com/kapv89 "kapv89 (9 commits)")[![Jakobud](https://avatars.githubusercontent.com/u/87356?v=4)](https://github.com/Jakobud "Jakobud (9 commits)")[![kbanman](https://avatars.githubusercontent.com/u/635006?v=4)](https://github.com/kbanman "kbanman (8 commits)")[![vespakoen](https://avatars.githubusercontent.com/u/876117?v=4)](https://github.com/vespakoen "vespakoen (7 commits)")

---

Tags

frameworklaravel

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/congraph-cms/health.svg)

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

###  Alternatives

[codewithdennis/larament

Larament is a time-saving starter kit to quickly launch Laravel 13.x projects. It includes FilamentPHP 5.x pre-installed and configured, along with additional tools and features to streamline your development workflow.

3691.5k](/packages/codewithdennis-larament)[ercogx/laravel-filament-starter-kit

This is a Filament v3 Starter Kit for Laravel 12, designed to accelerate the development of Filament-powered applications.

401.5k](/packages/ercogx-laravel-filament-starter-kit)

PHPackages © 2026

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