PHPackages                             tebe/pingcrm-yii2 - 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. tebe/pingcrm-yii2

ActiveProject[Framework](/categories/framework)

tebe/pingcrm-yii2
=================

Ping CRM on Yii 2 - A Yii 2 demo application to illustrate how Inertia.js works

62218[1 issues](https://github.com/tbreuss/pingcrm-yii2/issues)[2 PRs](https://github.com/tbreuss/pingcrm-yii2/pulls)PHP

Since Nov 8Pushed 3y ago4 watchersCompare

[ Source](https://github.com/tbreuss/pingcrm-yii2)[ Packagist](https://packagist.org/packages/tebe/pingcrm-yii2)[ RSS](/packages/tebe-pingcrm-yii2/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (4)Used By (0)

[![Build & Deploy](https://github.com/tbreuss/pingcrm-yii2/workflows/Build%20&%20Deploy/badge.svg)](https://github.com/tbreuss/pingcrm-yii2/workflows/Build%20&%20Deploy/badge.svg)

Ping CRM on Yii 2
=================

[](#ping-crm-on-yii-2)

A Yii 2 demo application to illustrate how [Inertia.js](https://inertiajs.com) works.

With Inertia you are able to build single-page apps using classic server-side routing and controllers, without building an API.

This application is a port of the original [Ping CRM written in Laravel](https://github.com/inertiajs/pingcrm) and based on the [Yii 2 Basic Project Template](https://github.com/yiisoft/yii2-app-basic).

[![](screenshot.png)](screenshot.png)

Demo
----

[](#demo)

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

[](#installation)

Clone the repo locally:

```
git clone https://github.com/tbreuss/pingcrm-yii2 pingcrm-yii2
cd pingcrm-yii2
```

Install PHP dependencies:

```
composer install
```

Install NPM dependencies:

```
npm ci
```

Build assets:

```
npm run dev
npm run css-dev
```

Create an SQLite database. You can also use another database (MySQL, Postgres), simply update your configuration accordingly.

```
touch database/database.sqlite
```

Run database migrations:

```
php yii migrate
```

Run database seeder:

```
php yii db/seed
```

Run the dev server (the output will give the address):

```
php yii serve
```

You're ready to go! Visit Ping CRM in your browser, and login with:

- **Username:**
- **Password:** secret

Running tests
-------------

[](#running-tests)

To run the Ping CRM tests, run:

```
(to be done)

```

Requirements
------------

[](#requirements)

- PHP &gt;= 5.6.0
- Node.js &amp; NPM
- SQLite

Extending this project
----------------------

[](#extending-this-project)

The following steps are required when extending this project with new features.

### In the backend

[](#in-the-backend)

- add new controller, that extends from inertia controller
- add one ore more actions
- return from the actions with a call to the inertia render method

```
