Skip to content

Commit

Permalink
Refactored structure of files.
Browse files Browse the repository at this point in the history
  • Loading branch information
wbraganca committed May 1, 2015
1 parent 2d0423c commit fcd5ce8
Show file tree
Hide file tree
Showing 15 changed files with 782 additions and 52 deletions.
10 changes: 10 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Path-based git attributes
# https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html

# Ignore all test and documentation with "export-ignore".
/.gitattributes export-ignore
/.gitignore export-ignore
/.travis.yml export-ignore
/phpunit.xml.dist export-ignore
/.scrutinizer.yml export-ignore
/tests export-ignore
26 changes: 26 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
build
docs
vendor

# cache directories
Thumbs.db
*.DS_Store
*.empty

#phpstorm project files
.idea

#netbeans project files
nbproject

#eclipse, zend studio, aptana or other eclipse like project files
.buildpath
.project
.settings

# composer itself is not needed
composer.phar

# mac deployment helpers
switch
index
35 changes: 35 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
filter:
excluded_paths: [tests/*]
checks:
php:
code_rating: true
remove_extra_empty_lines: true
remove_php_closing_tag: true
remove_trailing_whitespace: true
fix_use_statements:
remove_unused: true
preserve_multiple: false
preserve_blanklines: true
order_alphabetically: true
fix_php_opening_tag: true
fix_linefeed: true
fix_line_ending: true
fix_identation_4spaces: true
fix_doc_comments: true
tools:
external_code_coverage:
timeout: 600
runs: 3
php_analyzer: true
php_code_coverage: false
php_code_sniffer:
config:
standard: PSR2
filter:
paths: ['src']
php_loc:
enabled: true
excluded_dirs: [vendor, tests]
php_cpd:
enabled: true
excluded_dirs: [vendor, tests]
24 changes: 24 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
language: php

php:
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm

install:
- composer self-update
- composer global require "fxp/composer-asset-plugin:1.0.0"
- composer install

before_script:
- travis_retry composer self-update
- travis_retry composer install --no-interaction --prefer-source --dev

script:
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover

after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
27 changes: 0 additions & 27 deletions LICENSE

This file was deleted.

28 changes: 28 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# The BSD License (BSD)

Copyright (c) 2014, Wanderson Bragança

> Redistribution and use in source and binary forms, with or without modification,
> are permitted provided that the following conditions are met:
>
> Redistributions of source code must retain the above copyright notice, this
> list of conditions and the following disclaimer.
>
> Redistributions in binary form must reproduce the above copyright notice, this
> list of conditions and the following disclaimer in the documentation and/or
> other materials provided with the distribution.
>
> Neither the name of Wanderson Bragança nor the names of its
> contributors may be used to endorse or promote products derived from
> this software without specific prior written permission.
>
>THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
>ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
>WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
>DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
>ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
>(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
>LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
>ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
>(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
>SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
yii2-dynamicform
===================

[![Latest Version](https://img.shields.io/github/release/wbraganca/yii2-dynamicform.svg?style=flat-square)](https://github.com/wbraganca/yii2-dynamicform/releases)
[![Software License](http://img.shields.io/badge/license-BSD3-brightgreen.svg?style=flat-square)](LICENSE.md)
[![Build Status](https://img.shields.io/travis/wbraganca/yii2-dynamicform/master.svg?style=flat-square)](https://travis-ci.org/wbraganca/yii2-dynamicform)
[![Coverage Status](https://img.shields.io/scrutinizer/coverage/g/wbraganca/yii2-dynamicform.svg?style=flat-square)](https://scrutinizer-ci.com/g/wbraganca/yii2-dynamicform/code-structure)
[![Quality Score](https://img.shields.io/scrutinizer/g/wbraganca/yii2-dynamicform.svg?style=flat-square)](https://scrutinizer-ci.com/g/wbraganca/yii2-dynamicform)
[![Total Downloads](https://img.shields.io/packagist/dt/wbraganca/yii2-dynamicform.svg?style=flat-square)](https://packagist.org/packages/wbraganca/yii2-dynamicform)


It is widget to yii2 framework to clone form elements in a nested manner, maintaining accessibility.
![yii2-dynamicform](http://wbraganca.com/img/yii2-dynamicform-2.0.0.jpg)

Expand All @@ -26,7 +35,7 @@ to the require section of your `composer.json` file.
Usage
----------
###Hypothetical Scenario
![Database](http://wbraganca.com/img/yii2-dynamicform-db.png)
![Database](http://wbraganca.com/img/yii2--db.png)

###The View

Expand Down
62 changes: 38 additions & 24 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,40 @@
{
"name": "wbraganca/yii2-dynamicform",
"description": "It is widget to yii2 framework to clone form elements in a nested manner, maintaining accessibility.",
"keywords": ["yii2", "extension", "widget", "yii2-dynamicform", "copy DOM element", "yii2 dynamic form"],
"type": "yii2-extension",
"license": "BSD-3-Clause",
"support": {
"issues": "https://github.com/wbraganca/yii2-dynamicform/issues",
"wiki": "https://github.com/wbraganca/yii2-dynamicform/wiki/",
"source": "https://github.com/wbraganca/yii2-dynamicform"
},
"authors": [
{
"name": "Wanderson Bragança",
"email": "[email protected]"
}
],
"require": {
"yiisoft/yii2": "*",
"symfony/dom-crawler": "*",
"symfony/css-selector": "*"
},
"autoload": {
"psr-4": { "wbraganca\\dynamicform\\": "" }
}
"name": "wbraganca/yii2-dynamicform",
"description": "It is widget to yii2 framework to clone form elements in a nested manner, maintaining accessibility.",
"keywords": [
"wbraganca",
"yii2",
"extension",
"widget",
"yii2-dynamicform",
"copy DOM element",
"yii2 dynamic form"
],
"type": "yii2-extension",
"license": "BSD-3-Clause",
"support": {
"issues": "https://github.com/wbraganca/yii2-dynamicform/issues",
"wiki": "https://github.com/wbraganca/yii2-dynamicform/wiki/",
"source": "https://github.com/wbraganca/yii2-dynamicform"
},
"authors": [
{
"name": "Wanderson Bragança",
"email": "[email protected]",
"homepage": "http://wbraganca.com"
}
],
"require": {
"yiisoft/yii2": "~2.0.0",
"symfony/dom-crawler": "~2.6.6",
"symfony/css-selector": "~2.6.6"
},
"require-dev": {
"yiisoft/yii2-codeception": "*"
},
"autoload": {
"psr-4": {
"wbraganca\\dynamicform\\": "src"
}
}
}
Loading

0 comments on commit fcd5ce8

Please sign in to comment.