Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw committed Jul 3, 2019
1 parent 3ac1821 commit d716558
Show file tree
Hide file tree
Showing 69 changed files with 8,012 additions and 163 deletions.
31 changes: 11 additions & 20 deletions .scrutinizer.yml
@@ -1,23 +1,14 @@
imports:
- php
checks:
php:
code_rating: true
duplication: true
excluded_dependencies:
- hiqdev/composer-config-plugin
- phpunit/phpunit
- fzaninotto/faker
build:
nodes:
analysis:
tests:
override:
- php-scrutinizer-run

checks:
php: true
tools:
external_code_coverage: true
php_code_coverage:
enabled: true
external_code_coverage:
timeout: 2100
php_sim: false
php_cpd: false
filter:
excluded_paths:
- config/*
- docs/*
- tests/*
- vendor/*
timeout: 600
36 changes: 3 additions & 33 deletions .travis.yml
@@ -1,13 +1,11 @@
language: php

php:
- 7.3
- '7.2'
- '7.3'

dist: trusty

addons:
chrome: stable

# faster builds on new travis setup not using sudo
sudo: false

Expand All @@ -19,39 +17,11 @@ cache:
install:
- travis_retry composer self-update && composer --version
- travis_retry composer update --prefer-dist --no-interaction
# install php extensions
- |
if (php --version | grep -i HipHop > /dev/null); then
echo "Skipping imagick and gmagick tests on HHVM"
else
pear config-set preferred_state beta
printf "\n" | pecl install imagick
fi
before_script:
- echo "Config required"
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start

- echo "Download selenium-server-standalone jar file"
- wget -c -nc --retry-connrefused --tries=0 https://bit.ly/2TlkRyu -O selenium-server-standalone.jar

- echo "Run selenium-server"
- nohup bash -c "java -jar selenium-server-standalone.jar -port 9515 &" && sleep 1; cat nohup.out

- echo "Download chromedriver"
- wget https://chromedriver.storage.googleapis.com/75.0.3770.90/chromedriver_linux64.zip
- unzip -o -q chromedriver_linux64.zip
- chromedriver --port=9515 --url-base=wd/hub/ > /dev/null 2>&1&

script:
- |
cd tests
php -S 127.0.0.1:8080 -t public > /dev/null 2>&1&
cd ..
vendor/bin/codecept build
vendor/bin/codecept run --coverage-xml
vendor/bin/codecept run unit --coverage-xml
after_script:
- |
Expand Down
115 changes: 18 additions & 97 deletions README.md
@@ -1,40 +1,36 @@
<p align="center">
<a href="https://github.com/terabytesoft/app-basic" target="_blank">
<a href="https://github.com/terabytesoftw/asset-fontawesome" target="_blank">
<img src="https://lh3.googleusercontent.com/D9TFw1F6ddPuheDc_tpNptTdvTg-FNNpjLSBN14X6Sc-3JDiOxfE67rEh4OZfygonx1tKei2b2DEOHDLjF6T3xl8e-rkEEPZeGqLTWcS_v2cBRlyo0vcZLDHG5ivSDGIWCsenbol=w2400" height="50px;">
</a>
<h1 align="center">Web Application Basic</h1>
<h1 align="center">Asset FontAwesome Free</h1>
</p>

<p align="center">
<a href="https://packagist.org/packages/terabytesoftw/app-basic" target="_blank">
<img src="https://poser.pugx.org/terabytesoftw/app-basic/v/unstable.svg" alt="Unstable Version">
<a href="https://packagist.org/packages/terabytesoftw/asset-fontawesome" target="_blank">
<img src="https://poser.pugx.org/terabytesoftw/asset-fontawesome/v/unstable.svg" alt="Unstable Version">
</a>
<a href="https://travis-ci.org/terabytesoftw/app-basic" target="_blank">
<img src="https://travis-ci.org/terabytesoftw/app-basic.svg?branch=master" alt="Build Status">
<a href="https://travis-ci.org/terabytesoftw/asset-fontawesome" target="_blank">
<img src="https://travis-ci.org/terabytesoftw/asset-fontawesome.svg?branch=master" alt="Build Status">
</a>
<a href="https://scrutinizer-ci.com/g/terabytesoftw/app-basic/" target="_blank">
<img src="https://scrutinizer-ci.com/g/terabytesoftw/app-basic/badges/build.png?b=master" alt="Build Status">
<a href="https://scrutinizer-ci.com/g/terabytesoftw/asset-fontawesome/" target="_blank">
<img src="https://scrutinizer-ci.com/g/terabytesoftw/asset-fontawesome/badges/build.png?b=master" alt="Build Status">
</a>
<a href="https://scrutinizer-ci.com/g/terabytesoftw/app-basic/" target="_blank">
<img src="https://scrutinizer-ci.com/g/terabytesoftw/app-basic/badges/coverage.png?b=master" alt="Build Status">
<a href="https://scrutinizer-ci.com/g/terabytesoftw/asset-fontawesome/" target="_blank">
<img src="https://scrutinizer-ci.com/g/terabytesoftw/asset-fontawesome/badges/coverage.png?b=master" alt="Build Status">
</a>
<a href="https://scrutinizer-ci.com/g/terabytesoftw/app-basic/?branch=master" target="_blank">
<img src="https://scrutinizer-ci.com/g/terabytesoftw/app-basic/badges/quality-score.png?b=master" alt="Code Quality">
<a href="https://scrutinizer-ci.com/g/terabytesoftw/asset-fontawesome/?branch=master" target="_blank">
<img src="https://scrutinizer-ci.com/g/terabytesoftw/asset-fontawesome/badges/quality-score.png?b=master" alt="Code Quality">
</a>
<a href="https://scrutinizer-ci.com/code-intelligence" target="_blank">
<img src="https://scrutinizer-ci.com/g/terabytesoftw/app-basic/badges/code-intelligence.svg?b=master" alt="Code Intelligence Status">
<img src="https://scrutinizer-ci.com/g/terabytesoftw/asset-fontawesome/badges/code-intelligence.svg?b=master" alt="Code Intelligence Status">
</a>
<a href="https://codeclimate.com/github/terabytesoftw/app-basic/maintainability" target="_blank">
<a href="https://codeclimate.com/github/terabytesoftw/asset-fontawesome/maintainability" target="_blank">
<img src="https://api.codeclimate.com/v1/badges/9bbe65b6fda1abd74c2c/maintainability" alt="Maintainability">
</a>
</p>

</br>

<p align="center">
App Web Application Basic of Yii Version 2.0. <a href="http://www.yiiframework.com/" title="Yii Framework" target="_blank">Yii Framework</a> application best for rapidly creating projects with Bootstrap 4.
</p>

### **DIRECTORY STRUCTURE:**

```
Expand All @@ -45,97 +41,22 @@ tests/ contains tests codeception for the web application
vendor/ contains dependent 3rd-party packages
```

### **FEATURES:**


### **REQUIREMENTS:**

- The minimum requirement by this project template that your Web server supports:
- PHP 7.2 or higher.

### **INSTALLATION:**

<p align="justify">
If you do not have <a href="http://getcomposer.org/" title="Composer" target="_blank">Composer</a>, you may install it by following the instructions at <a href="http://getcomposer.org/doc/00-intro.md#installation-nix" title="getcomposer.org" target="_blank">getcomposer.org</a>.
</p>

You can then install this project template using the following command:

~~~
composer create-project --prefer-dist --stability=dev terabytesoftw/app-template-basic myapp
~~~

<p align="justify">
Now you should be able to access the application through the following URL, assuming `public` is the directory
directly under the Web root.
</p>

<p align="justify">
<strong>App Web Application Basic (terabytesoftw/app-basic) is installed automatically together with the Web Project Skeleton Application Basic (terabytesoftw/app-template-basic), both try the necessary packages to start your Web Application Basic in Yii 2.0.</strong>
</p>

__*Virtual Host:*__

~~~
http://localhost/
~~~

__*Server Yii:*__

Directory - [app-template-basic]

~~~
php -S 127.0.0.1:8080 -t public > /dev/null 2>&1&
~~~

### **CONFIGURATION:**

- [Detailed Settings](docs/CONFIG.md).

**NOTE:**

<p align="justify">
All the configuration is customizable through parameters, there is no need to modify any configuration of Yii 2.0 Web Application Basic, if you need any extra configuration you can open an issue with pleasure we will add it.
</p>

Very important when changing any configuration run `composer du`, to apply it.

### **GENERATE MESSAGES TRANSLATION:**

<p align="justify">
To generate the Yii 2.0 Web Application Basic translations, you can change the language settings in:
<p>

```
config/messages.php - [app-template-basic]:
'languages' => ['en'],
```
<p align="justify">
Automatically the generator will create the folder of your language in /messages - [app-template-basic], If any translation is needed, you can open an issue to add it.
</p>

```
root directory - [app-template-basic]:
./vendor/bin/yii message config/messages.php
```

### **RUN TESTS CODECEPTION:**

~~~
// download all composer dependencies root project
$ composer update --prefer-dist -vvv
// download & run crhomedriver version chrome desktop
$ wget -P vendor/bin https://chromedriver.storage.googleapis.com/75.0.3770.90/chromedriver_linux64.zip
$ unzip -o -q vendor/bin/chromedriver_linux64.zip
$ vendor/bin/chromedriver --port=9515 --url-base=wd/hub/ > /dev/null 2>&1&
// run web server cli php
$ php -S 127.0.0.1:8080 -t tests/public > /dev/null 2>&1&
// run all tests with code coverage
$ vendor/bin/codecept run --coverage-xml
$ vendor/bin/codecept run unit --coverage-xml
~~~

### **WEB SERVER SUPPORT:**
Expand All @@ -150,7 +71,7 @@ $ vendor/bin/codecept run --coverage-xml

### **LICENCE:**

[![License](https://poser.pugx.org/terabytesoftw/app-basic/license.svg)](LICENSE.md)
[![License](https://poser.pugx.org/terabytesoftw/asset-fontawesome/license.svg)](LICENSE.md)
[![YiiFramework](https://img.shields.io/badge/Powered_by-Yii_Framework-green.svg?style=flat)](https://www.yiiframework.com/)
[![Total Downloads](https://poser.pugx.org/terabytesoftw/app-basic/downloads.svg)](https://packagist.org/packages/terabytesoftw/app-basic)
[![Total Downloads](https://github.styleci.io/repos/165419144/shield?branch=master)](https://github.styleci.io/repos/165419144)
[![Total Downloads](https://poser.pugx.org/terabytesoftw/asset-fontawesome/downloads.svg)](https://packagist.org/packages/terabytesoftw/asset-fontawesome)
[![Total Downloads](https://github.styleci.io/repos/194880330/shield?branch=master)](https://github.styleci.io/repos/194880330)
27 changes: 27 additions & 0 deletions codeception.yml
@@ -0,0 +1,27 @@
namespace: terabytesoft\assets\fontawesome\tests
paths:
tests: tests
output: tests/_output
data: tests/_data
support: tests/_support
envs: tests/_envs
actor_suffix: Tester
extensions:
enabled:
- Codeception\Extension\RunFailed
- Codeception\Extension\Logger
settings:
bootstrap: _bootstrap.php
suite_class: \PHPUnit_Framework_TestSuite
memory_limit: 1024M
colors: true
modules:
config:
Yii2:
configFile: 'config/test.php'
coverage:
enabled: true
whitelist:
include:
- src/*

30 changes: 17 additions & 13 deletions composer.json
@@ -1,13 +1,13 @@
{
"name": "terabytesoftw/github-template",
"name": "terabytesoftw/asset-fontawesome",
"type": "yii2-extension",
"description": "Template giyhub yii2",
"description": "Assets Font Awesome Free",
"keywords": [
"github",
"template",
"yii"
"assets",
"font awesome",
"free"
],
"homepage": "https://github.com/terabytesoftw/github-template",
"homepage": "https://github.com/terabytesoftw/asset-fontawesome",
"license": "BSD-3-Clause",
"authors": [
{
Expand All @@ -18,10 +18,10 @@
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": ">=5.4.0",
"php": "^7.2.0",
"npm-asset/fortawesome--fontawesome-free": "^5.6.3",
"oomphinc/composer-installers-extender": "^1.1",
"yiisoft/yii2": "^2.0.20",
"yiisoft/yii2-bootstrap4": "^2.0.3"
"yiisoft/yii2": "^2.0.20"
},
"require-dev": {
"codeception/codeception": "^3.0",
Expand All @@ -32,14 +32,13 @@
"hiqdev/composer-config-plugin": "^1.0@dev",
"monolog/monolog": "*",
"yiisoft/yii2-debug": "~2.1.0",
"yiisoft/yii2-gii": "~2.1.0",
"yiisoft/yii2-faker": "~2.0.0"
"yiisoft/yii2-gii": "~2.1.0"
},
"autoload": {
"psr-4": {"terabytesoft\\template\\github\\": "src/"}
"psr-4": {"terabytesoft\\assets\\fontawesome\\": "src/"}
},
"autoload-dev": {
"psr-4": {"terabytesoft\\template\\github\\tests\\": "tests/"}
"psr-4": {"terabytesoft\\assets\\fontawesome\\tests\\": "tests/"}
},
"config": {
"process-timeout": 1800,
Expand All @@ -51,6 +50,11 @@
"branch-alias": {
"dev-master": "1.0.x-dev"
},
"config-plugin": {
"params": [
"config/assetfontawesome.php"
]
},
"installer-types": [
"bower-asset",
"npm-asset"
Expand Down

0 comments on commit d716558

Please sign in to comment.