diff --git a/.github/ISSUE_TEMPLATE/1_Bug_report.yaml b/.github/ISSUE_TEMPLATE/1_Bug_report.yaml new file mode 100644 index 0000000..716931a --- /dev/null +++ b/.github/ISSUE_TEMPLATE/1_Bug_report.yaml @@ -0,0 +1,41 @@ +name: 🐛 Bug Report +description: Bug report template +labels: Bug + +body: + - type: input + id: affected-versions + attributes: + label: version(s) affected + placeholder: x.y.z + validations: + required: true + - type: textarea + id: description + attributes: + label: Description + description: A clear and concise description of the problem + validations: + required: true + - type: textarea + id: how-to-reproduce + attributes: + label: How to reproduce + description: | + ⚠️ This is the most important part of the report ⚠️ + Without a way to easily reproduce your issue, there is little chance we will be able to help you and work on a fix. + Please, take the time to show us some code and/or config that is needed for others to reproduce the problem easily. + validations: + required: true + - type: textarea + id: possible-solution + attributes: + label: Possible Solution + description: | + Optional: only if you have suggestions on a fix/reason for the bug + Don't hesitate to create a pull request with your solution, it helps get faster feedback. + - type: textarea + id: additional-context + attributes: + label: Additional Context + description: "Optional: any other context about the problem: log messages, screenshots, etc." \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/2_Feature_request.yaml b/.github/ISSUE_TEMPLATE/2_Feature_request.yaml new file mode 100644 index 0000000..f3ac7df --- /dev/null +++ b/.github/ISSUE_TEMPLATE/2_Feature_request.yaml @@ -0,0 +1,17 @@ +name: 🚀 Feature Request +description: Ideas for new features and improvements +body: + - type: textarea + id: description + attributes: + label: Description + description: A clear and concise description of the new feature + validations: + required: true + - type: textarea + id: example + attributes: + label: Example + description: | + A simple example of the new feature in action (include PHP code, YAML config, etc.) + If the new feature changes an existing feature, include a simple before/after comparison. \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..ec4bb38 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1 @@ +blank_issues_enabled: false \ No newline at end of file diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..2c27c48 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,16 @@ +| Q | A | +|---------------|---------------------------------------------------------------------------------------------------------------------------| +| Bug fix? | yes/no | +| New feature? | yes/no | +| Deprecations? | yes/no | +| Issues | Fix #... | +| License | MIT | + + \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..e69de29 diff --git a/README.md b/README.md index 70d38de..ed33c4e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# bitrix24-app-core +# bitrix24-php-lib -Bitrix24 application core +PHP lib for Bitrix24 application development ## Область применения diff --git a/composer.json b/composer.json index 593339e..e5e973d 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "mesilov/bitrix24-app-core", + "name": "mesilov/bitrix24-php-lib", "description": "A powerful PHP library for rapid Bitrix24 application development", "keywords": [ "Bitrix24", @@ -56,12 +56,12 @@ }, "autoload": { "psr-4": { - "Bitrix24\\SDK\\ApplicationCore\\": "src" + "Bitrix24\\SDK\\Lib\\": "src" } }, "autoload-dev": { "psr-4": { - "Bitrix24\\SDK\\ApplicationCore\\Tests\\": "tests", + "Bitrix24\\SDK\\Lib\\Tests\\": "tests", "Bitrix24\\SDK\\Tests\\":"vendor/mesilov/bitrix24-php-sdk/tests" } } diff --git a/src/Bitrix24Accounts/Entity/Bitrix24Account.php b/src/Bitrix24Accounts/Entity/Bitrix24Account.php index 5bd67b2..527f5b1 100644 --- a/src/Bitrix24Accounts/Entity/Bitrix24Account.php +++ b/src/Bitrix24Accounts/Entity/Bitrix24Account.php @@ -1,6 +1,6 @@ * @@ -10,7 +10,7 @@ declare(strict_types=1); -namespace Bitrix24\SDK\ApplicationCore\Bitrix24Accounts\Entity; +namespace Bitrix24\SDK\Lib\Bitrix24Accounts\Entity; use Bitrix24\SDK\Application\Contracts\Bitrix24Accounts\Entity\Bitrix24AccountInterface; use Bitrix24\SDK\Application\Contracts\Bitrix24Accounts\Entity\Bitrix24AccountStatus; diff --git a/tests/Unit/Bitrix24Accounts/Entity/Bitrix24AccountTest.php b/tests/Unit/Bitrix24Accounts/Entity/Bitrix24AccountTest.php index f4986a9..d8b83f7 100644 --- a/tests/Unit/Bitrix24Accounts/Entity/Bitrix24AccountTest.php +++ b/tests/Unit/Bitrix24Accounts/Entity/Bitrix24AccountTest.php @@ -1,7 +1,7 @@ * @@ -11,11 +11,11 @@ declare(strict_types=1); -namespace Bitrix24\SDK\ApplicationCore\Tests\Unit\Bitrix24Accounts\Entity; +namespace Bitrix24\SDK\Lib\Tests\Unit\Bitrix24Accounts\Entity; use Bitrix24\SDK\Application\Contracts\Bitrix24Accounts\Entity\Bitrix24AccountInterface; use Bitrix24\SDK\Application\Contracts\Bitrix24Accounts\Entity\Bitrix24AccountStatus; -use Bitrix24\SDK\ApplicationCore\Bitrix24Accounts\Entity\Bitrix24Account; +use Bitrix24\SDK\Lib\Bitrix24Accounts\Entity\Bitrix24Account; use Bitrix24\SDK\Core\Credentials\AuthToken; use Bitrix24\SDK\Core\Credentials\Scope; use Bitrix24\SDK\Tests\Application\Contracts\Bitrix24Accounts\Entity\Bitrix24AccountInterfaceTest; diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 8131bde..94def9c 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -1,7 +1,7 @@ *