Skip to content

Commit

Permalink
Changed extension skeleton.
Browse files Browse the repository at this point in the history
  • Loading branch information
vova07 committed Mar 8, 2015
1 parent 9689f9f commit bfe4776
Show file tree
Hide file tree
Showing 84 changed files with 213 additions and 71 deletions.
57 changes: 24 additions & 33 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,62 +1,53 @@
1.1.12
------
# Changelog

All Notable changes to `yii2-imperavi-widget` will be documented in this file.

## 1.2.0

### Changed
- Extension skeleton (vova07)

## 1.1.12
- Added human readable file size and fix `findFiles()` method in `FileHelper` class. (maxmirazh33)

1.1.11
------
## 1.1.11
- Added 'pt-BR' language. (vova07, lcidral)

1.1.10
------
## 1.1.10
- Imperavi redactor updated to 10.0.7 (vova07)

1.1.9
-----
## 1.1.9
- Added 'DE' language. (vova07, tonwi)

1.1.8
-----
## 1.1.8
- Fixed README file (vova07)

1.1.7
-----
## 1.1.7
- Imperavi redactor updated to 10.0.6 (vova07)

1.1.6
-----

## 1.1.6
- Fixed README file (vova07)

1.1.5
-----
## 1.1.5
- Imperavi redactor updated to 10.0.5 (vova07)

1.1.4
-----
## 1.1.4
- Fixes for use GetAction with fileManager plugin (maxmirazh33)

1.1.3
-----
## 1.1.3
- Imperavi redactor updated to 10.0.3 (vova07)

1.1.2
-----
## 1.1.2
- Imperavi redactor updated to 10.0.2 (vova07)

1.1.1
-----
## 1.1.1
- Imperavi redactor updated to 10.0.1 (vova07)

1.1.0
-----
## 1.1.0
- Imperavi redactor updated to 10.0.0 (vova07)

1.0.1
-----

## 1.0.1
- Imperavi redactor updated to 9.2.5 (vova07)

1.0.0
-----

## 1.0.0
- Initial release (vova07)
32 changes: 32 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Contributing

Contributions are **welcome** and will be fully **credited**.

We accept contributions via Pull Requests on [Github](https://github.com/2amigos/:package_name).


## Pull Requests

- **[PSR-2 Coding Standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md)** - The easiest way to apply the conventions is to install [PHP Code Sniffer](http://pear.php.net/package/PHP_CodeSniffer).

- **Add tests!** - Your patch won't be accepted if it doesn't have tests.

- **Document any change in behaviour** - Make sure the `README.md` and any other relevant documentation are kept up-to-date.

- **Consider our release cycle** - We try to follow [SemVer v2.0.0](http://semver.org/). Randomly breaking public APIs is not an option.

- **Create feature branches** - Don't ask us to pull from your master branch.

- **One pull request per feature** - If you want to do more than one thing, send multiple pull requests.

- **Send coherent history** - Make sure each individual commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing, please squash them before submitting.


## Running Tests

``` bash
$ phpunit
```


**Happy coding**!
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ The Imperavi Redactor WYSIWYG widget is free software. Every part of this
project except `assets` directory is released under the terms of the following
BSD License.

Copyright © 2010-2014 by YiiExt contributors
Copyright © 2014-{year} by Crudu Vasile (vova07)
All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
Expand Down
42 changes: 32 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,38 @@
Imperavi Redactor Widget for Yii 2
==================================
# Imperavi Redactor Widget for Yii 2

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

`Imperavi Redactor Widget` is a wrapper for [Imperavi Redactor](http://imperavi.com/redactor/),
a high quality WYSIWYG editor.

Note that Imperavi Redactor itself is a proprietary commercial copyrighted software
but since Yii community bought OEM license you can use it for free with Yii.

Installation
------------
## Install

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist vova07/yii2-imperavi-widget "*"
```bash
$ php composer.phar require --prefer-dist vova07/yii2-imperavi-widget "*"
```

or add

```
```json
"vova07/yii2-imperavi-widget": "*"
```

to the require section of your `composer.json` file.


Usage
-----
## Usage

Once the extension is installed, simply use it in your code:

Expand Down Expand Up @@ -209,4 +213,22 @@ echo \vova07\imperavi\Widget::widget([
'my-custom-plugin' => 'app\assets\MyPluginBundle'
]
]);
```
```

## Testing

``` bash
$ phpunit
```

## Contributing

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

## Credits

- [vova07](https://github.com/vova07)

## License

The BSD License (BSD). Please see [License File](LICENSE.md) for more information.
42 changes: 32 additions & 10 deletions README_RU.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
Imperavi Redactor Widget для Yii 2
==================================
# Imperavi Redactor Widget для Yii 2

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

`Imperavi Redactor Widget` — обёртка для [Imperavi Redactor](http://imperavi.com/redactor/),
довольно неплохого WYSIWYG редактора.
Expand All @@ -8,28 +14,26 @@ Imperavi Redactor Widget для Yii 2
OpenSource, но так как сообщество Yii купило OEM-лицензию, то вы можете бесплатно
пользоваться им в проектах на Yii.

Установка
---------
## Установка

Желательно устанавливать расширение через [composer](http://getcomposer.org/download/).

Просто запустите в консоли команду:

```
php composer.phar require --prefer-dist vova07/yii2-imperavi-widget "*"
```bash
$ php composer.phar require --prefer-dist vova07/yii2-imperavi-widget "*"
```

или добавьте

```
```json
"vova07/yii2-imperavi-widget": "*"
```

в `require` секцию вашего `composer.json` файла.


Использование
-------------
## Использование

Как только вы установили расширение, вы можете её использовать в своём коде:

Expand Down Expand Up @@ -212,4 +216,22 @@ echo \vova07\imperavi\Widget::widget([
'my-custom-plugin' => 'app\assets\MyPluginBundle'
]
]);
```
```

## Тестирование

``` bash
$ phpunit
```

## Хотите помочь?

Пожалуйста проверьте [CONTRIBUTING файл](CONTRIBUTING.md) для подробной информации.

## Авторство

- [vova07](https://github.com/vova07)

## Лицензия

BSD Лицензия (BSD). Пожалуйста проверьте [License файл](LICENSE.md) для подробной информации.
46 changes: 31 additions & 15 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
{
"name": "vova07/yii2-imperavi-widget",
"description": "The imperavi redactor widget for Yii framework.",
"description": "The imperavi redactor widget for Yii 2 framework.",
"type": "yii2-extension",
"keywords": ["yii2", "yii 2", "imperavi", "redactor", "wysiwyg", "widget"],
"license": "proprietary",
"keywords": [
"yii",
"extension",
"imperavi",
"widget",
"yii2",
"yii 2",
"redactor",
"wysiwyg"
],
"homepage": "https://github.com/vova07/yii2-imperavi-widget",
"license": "BSD-3-Clause",
"authors": [
{
"name": "Crudu Vasile",
"email": "[email protected]"
},
{
"name": "Veaceslav Medvedev",
"email": "[email protected]"
},
{
"name": "Alexander Makarov",
"email": "[email protected]",
"homepage": "http://rmcreative.ru/"
}
"email": "[email protected]",
"homepage": "https://github.com/vova07",
"role": "Developer"
}
],
"support": {
"issues": "https://github.com/vova07/yii2-imperavi-widget/issues?state=open",
Expand All @@ -26,9 +29,22 @@
"require": {
"yiisoft/yii2": "*"
},
"require-dev": {
"phpunit/phpunit": "4.*"
},
"autoload": {
"psr-4": {
"vova07\\imperavi\\": ""
"vova07\\imperavi\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"vova07\\imperavi\\tests\\": "tests"
}
},
"extra": {
"branch-alias": {
"dev-master": "1.0-dev"
}
}
}
29 changes: 29 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="tests/bootstrap.php"
backupGlobals="false"
backupStaticAttributes="false"
colors="true"
verbose="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false">
<testsuites>
<testsuite name="Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">src/</directory>
</whitelist>
</filter>
<logging>
<log type="tap" target="build/report.tap"/>
<log type="junit" target="build/report.junit.xml"/>
<log type="coverage-html" target="build/coverage" charset="UTF-8" yui="true" highlight="true"/>
<log type="coverage-text" target="build/coverage.txt"/>
<log type="coverage-clover" target="build/logs/clover.xml"/>
</logging>
</phpunit>
File renamed without changes.
2 changes: 0 additions & 2 deletions Widget.php → src/Widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
*
* @author Vasile Crudu <[email protected]>
*
* @version 1.1.12
*
* @link https://github.com/vova07/yii2-imperavi-widget
* @link http://imperavi.com/redactor
* @license https://github.com/vova07/yii2-imperavi-widget/blob/master/LICENSE.md
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit bfe4776

Please sign in to comment.