diff --git a/.github/workflows/ecs.yml b/.github/workflows/ecs.yml
new file mode 100644
index 0000000..dff0db6
--- /dev/null
+++ b/.github/workflows/ecs.yml
@@ -0,0 +1,34 @@
+on:
+ pull_request:
+ paths-ignore:
+ - 'docs/**'
+ - 'README.md'
+ - 'CHANGELOG.md'
+ - '.gitignore'
+ - '.gitattributes'
+ - 'infection.json.dist'
+ - 'phpunit.xml.dist'
+
+ push:
+ branches: ['main']
+ paths-ignore:
+ - 'docs/**'
+ - 'README.md'
+ - 'CHANGELOG.md'
+ - '.gitignore'
+ - '.gitattributes'
+ - 'infection.json.dist'
+ - 'phpunit.xml.dist'
+
+name: ecs
+
+jobs:
+ easy-coding-standard:
+ uses: php-forge/actions/.github/workflows/ecs.yml@main
+ secrets:
+ AUTH_TOKEN: ${{ secrets.AUTH_TOKEN }}
+ with:
+ os: >-
+ ['ubuntu-latest']
+ php: >-
+ ['8.1']
diff --git a/.styleci.yml b/.styleci.yml
index 5b7ddb2..6f428b6 100644
--- a/.styleci.yml
+++ b/.styleci.yml
@@ -17,9 +17,11 @@ enabled:
- combine_nested_dirname
- declare_strict_types
- dir_constant
+ - empty_loop_body_braces
- fully_qualified_strict_types
- function_to_constant
- hash_to_slash_comment
+ - integer_literal_case
- is_null
- logical_operators
- magic_constant_casing
@@ -56,7 +58,6 @@ enabled:
- phpdoc_order
- phpdoc_property
- phpdoc_scalar
- - phpdoc_separation
- phpdoc_singular_inheritdoc
- phpdoc_trim
- phpdoc_trim_consecutive_blank_line_separation
@@ -78,9 +79,9 @@ enabled:
- trailing_comma_in_multiline_array
- unalign_double_arrow
- unalign_equals
- - empty_loop_body_braces
- - integer_literal_case
- union_type_without_spaces
disabled:
- function_declaration
+ - psr12_braces
+ - psr12_class_definition
diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 0000000..e8ec381
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,3 @@
+# Change Log
+
+## 0.1.0 February 28, 2024
diff --git a/LICENSE b/LICENSE
index d89684f..136b000 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,21 +1,16 @@
MIT License
-Copyright (c) 2023 yii2-extensions
+Copyright (c) 2024 by Wilmer Arámbula (https://github.com/terabytesoftw) All rights reserved.
-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:
+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 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.
+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.
diff --git a/README.md b/README.md
index e794425..06f9d53 100644
--- a/README.md
+++ b/README.md
@@ -36,17 +36,17 @@ The preferred way to install this extension is through [composer](https://getcom
Either run
-```
-composer require --dev --prefer-dist yii2-extensions/datetime-picker
+```shell
+composer require --dev --prefer-dist yii2-extensions/datetime-picker:^0.1
```
or add
-```
-"yii2-extensions/datetime-picker": "dev-main"
+```json
+"yii2-extensions/datetime-picker": "^0.1"
```
-to the require-dev section of your `composer.json` file.
+to the require section of your `composer.json` file.
## Usage
@@ -158,7 +158,7 @@ for default the extension supports the following languages.
## Testing
-[Check the documentation testing](/docs/testing.md) to learn about testing.
+[Check the documentation testing](docs/testing.md) to learn about testing.
## Our social networks
@@ -166,4 +166,4 @@ for default the extension supports the following languages.
## License
-The MIT License. Please see [License File](LICENSE.md) for more information.
+The MIT License. Please see [License File](LICENSE) for more information.
diff --git a/changelog.md b/changelog.md
deleted file mode 100644
index 9a203e1..0000000
--- a/changelog.md
+++ /dev/null
@@ -1,2 +0,0 @@
-Change Log
-==========
diff --git a/composer.json b/composer.json
index b5097ac..2466800 100644
--- a/composer.json
+++ b/composer.json
@@ -9,22 +9,20 @@
"picker"
],
"license": "mit",
- "minimum-stability": "dev",
- "prefer-stable": true,
"require": {
"php": ">=8.1",
- "npm-asset/eonasdan--tempus-dominus": "^6.7",
- "oomphinc/composer-installers-extender": "^2.0",
- "php-forge/html": "dev-main",
- "yii2-extensions/asset-popper": "dev-main",
- "yiisoft/yii2": "^2.2"
+ "npm-asset/eonasdan--tempus-dominus": "^6.9",
+ "php-forge/html": "^0.2",
+ "yii2-extensions/asset-popper": "^0.1",
+ "yiisoft/yii2": "^2.0.49 || ^2.2"
},
"require-dev": {
- "maglnet/composer-require-checker": "^4.6",
- "php-forge/support": "dev-main",
- "phpunit/phpunit": "10.5.3",
+ "maglnet/composer-require-checker": "^4.7",
+ "php-forge/support": "^0.1",
+ "phpunit/phpunit": "^10.5",
"roave/infection-static-analysis-plugin": "^1.34",
- "yii2-extensions/phpstan": "dev-main"
+ "symplify/easy-coding-standard": "^12.1",
+ "yii2-extensions/phpstan": "^0.1"
},
"autoload": {
"psr-4": {
@@ -38,7 +36,7 @@
},
"extra": {
"branch-alias": {
- "dev-main": "1.0.x-dev"
+ "dev-main": "0.1-dev"
},
"config-plugin": {
"params": "params.php",
@@ -46,16 +44,6 @@
},
"config-plugin-options": {
"source-directory": "config"
- },
- "installer-types": [
- "bower-asset",
- "npm-asset"
- ],
- "installer-paths": {
- "./node_modules/{$name}": [
- "type:bower-asset",
- "type:npm-asset"
- ]
}
},
"config": {
@@ -63,13 +51,16 @@
"allow-plugins": {
"yiisoft/yii2-composer": true,
"composer/installers": true,
- "oomphinc/composer-installers-extender": true,
"infection/extension-installer": true
}
},
"scripts": {
"check-dependencies": "composer-require-checker",
- "mutation": "roave-infection-static-analysis-plugin",
+ "easy-coding-standard": "ecs check",
+ "mutation": [
+ "Composer\\Config::disableProcessTimeout",
+ "roave-infection-static-analysis-plugin"
+ ],
"phpstan": "phpstan",
"test": "phpunit"
},
diff --git a/docs/test.html b/docs/test.html
new file mode 100644
index 0000000..ad39e24
--- /dev/null
+++ b/docs/test.html
@@ -0,0 +1,47 @@
+
+