Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
akshay kumar
committed
Nov 2, 2018
1 parent
e29b848
commit 0b29493
Showing
6 changed files
with
393 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2018 akshaywebkul | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,54 @@ | ||
# community-skeleton | ||
UVDesk Community Helpdesk Project Skeleton | ||
<p align="center"><a href="https://www.uvdesk.com/en/" target="_blank"> | ||
<img src="https://s3-ap-southeast-1.amazonaws.com/cdn.uvdesk.com/uvdesk/bundles/webkuldefault/images/uvdesk-wide.svg"> | ||
</a></p> | ||
|
||
A fully-functional [UVDesk Community Edition][1] project skeleton packaged along with the bare essential utilities that you can use to develop your own custom helpdesk solutions. | ||
|
||
Click [here][2] to view the live community project demo. | ||
|
||
What's Included? | ||
-------------- | ||
|
||
The standard distribution comes pre-configured with the following bundles: | ||
|
||
* [**UVDeskCoreBundle**][3] - The core framework bundle for bulding helpdesk solutions | ||
|
||
* [**UVDeskAutomationBundle**][4] - Adds support for workflows and prepared responses to automate any specific operations within your helpdesk system | ||
|
||
* [**UVDeskSupportCenterBundle**][5] - Integrates the easily customizable support center portal to enable users to easily interact with the support staff through your helpdesk system | ||
|
||
Installation | ||
-------------- | ||
|
||
Before creating your UVDesk Community project, make sure that you're using PHP 7 or higher and have [Composer][6] installed. You also need to ensure that you have the following PHP extensions installed: | ||
|
||
* [PHP IMAP][7] | ||
* [PHP Mailparse][8] | ||
|
||
To create your project, run the following command: | ||
|
||
```bash | ||
$ composer create-project uvdesk/community-skeleton helpdesk-project | ||
``` | ||
|
||
About Us | ||
-------------- | ||
The development of the UVDesk Community Edition is supported by [Webkul][9], led by the [UVDesk Team][10]. | ||
|
||
Visit our official [website][1] to learn more about the UVDesk Helpdesk System. | ||
|
||
License | ||
-------------- | ||
|
||
All libraries and bundles included in the UVDesk Community Edition are released under the MIT or BSD license. | ||
|
||
[1]: https://www.uvdesk.com/ | ||
[2]: https://community.uvdesk.com/en/ | ||
[3]: https://github.com/akshaywebkul/core | ||
[4]: https://github.com/akshaywebkul/automations | ||
[5]: https://github.com/akshaywebkul/support-center | ||
[6]: http://php.net/manual/en/book.imap.php | ||
[7]: http://php.net/manual/en/book.mailparse.php | ||
[8]: https://getcomposer.org/ | ||
[9]: https://webkul.com/ | ||
[10]: https://www.uvdesk.com/en/team/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"name": "uvdesk/community-skeleton", | ||
"description": "UVDesk Community Helpdesk Project Skeleton", | ||
"type": "project", | ||
"license": "MIT", | ||
"require": { | ||
"php": "^7.0", | ||
"uvdesk/composer-package-manager": "^0.1", | ||
"symfony/flex": "^1.0", | ||
"uvdesk/core-framework": "^0.1", | ||
"uvdesk/automation-bundle": "^0.1", | ||
"uvdesk/support-center-bundle": "^0.1" | ||
}, | ||
"require-dev": { | ||
"symfony/dotenv": "^3.4", | ||
"symfony/var-dumper": "^3.4", | ||
"symfony/web-server-bundle": "^3.4" | ||
}, | ||
"config": { | ||
"sort-packages": true, | ||
"preferred-install": "dist" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"App\\": "src/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"App\\Tests\\": "tests/" | ||
} | ||
}, | ||
"scripts": { | ||
"post-install-cmd": [ | ||
"@auto-scripts" | ||
], | ||
"post-update-cmd": [ | ||
"@auto-scripts" | ||
] | ||
}, | ||
"conflict": { | ||
"symfony/symfony": "*", | ||
"symfony/website-skeleton": "*" | ||
}, | ||
"minimum-stability": "dev" | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?php | ||
|
||
namespace App\Controller; | ||
|
||
use Doctrine\DBAL\DBALException; | ||
use Symfony\Component\Routing\Annotation\Route; | ||
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | ||
|
||
class DefaultController extends Controller | ||
{ | ||
const HELPDESK_VERSION = '0.1.0-DEV'; | ||
|
||
/** | ||
* @Route( | ||
* "/", | ||
* defaults = { | ||
* "_locale": "en" | ||
* }, | ||
* name = "welcome_uvdesk_community" | ||
* ) | ||
*/ | ||
public function welcome($_locale) | ||
{ | ||
$isDatabaseConfigured = true; | ||
$databaseConnection = $this->getDoctrine()->getEntityManager()->getConnection(); | ||
|
||
if (false === $databaseConnection->isConnected()) { | ||
try { | ||
$databaseConnection->connect(); | ||
} catch (DBALException $e) { | ||
$isDatabaseConfigured = false; | ||
} | ||
} | ||
|
||
$pathToHelpdeskPanel = $isDatabaseConfigured ? 'helpdesk_member_handle_login' : null; | ||
$pathToSupportCenterPanel = ($isDatabaseConfigured && array_key_exists('UVDeskSupportCenterBundle', $this->getParameter('kernel.bundles'))) ? 'helpdesk_knowledgebase' : null; | ||
|
||
return $this->render('uvdesk-community-edition.html.twig', [ | ||
'version' => self::HELPDESK_VERSION, | ||
'isDatabaseConfigured' => $isDatabaseConfigured, | ||
'pathToHelpdeskPanel' => $pathToHelpdeskPanel, | ||
'pathToSupportCenterPanel' => $pathToSupportCenterPanel, | ||
]); | ||
} | ||
} |
Oops, something went wrong.