Skip to content

SonarSoftwareInc/customer_portal_framework

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sonar Customer Portal Framework

A framework to build a Sonar integrated customer portal. This library requires Sonar version 0.6.0 or higher to function, and will not work on earlier versions.

What is this?

This is a PHP library to assist you with building a custom customer portal. This library abstracts a lot of the Sonar API calls and adds convenient shortcuts to many common features required in a customer portal.

Installing

The recommended installation method is using Composer. You can install by adding the following to your composer.json ...

"repositories" [
    ...
    {
        "type": "vcs", 
        "url": "https://github.com/sonarsoftwareinc/customer_portal_framework"
    }
    ...
]

and running composer require sonarsoftwareinc/customer_portal_framework:{VERSION NUMBER}.

Configuration

Copy the .env.example file from inside the src directory to a new file called .env. Edit this file and set your Sonar installation URL, API username, and API password. The only permissions required for this library to function are account create, read, update, and delete, and ticket create, read, and update. It is strongly recommended that you create a dedicated account solely for the customer portal - do not use your admin account!

Deploying Changes

Once a PR has been merged into master, you must create a release with its title incremented (ex: 1.0.2 -> 1.0.3).

Once the release has been created you can now go to the customer portal repo and incrememnt the customer portal portal framework version from there.

How to use this library

The Controllers directory contains controllers that allow you to interface with different aspects of the Sonar API. Each controller function is documented. Some controller functions return the raw data from the Sonar API as a PHP object. Controllers that allow you to save changes back to the Sonar API will return an abstracted object defined in the Models directory. Check the format of each controller function to see the requirements.

About

A framework to build a Sonar integrated customer portal

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%