- Install dependencies
composer install
- Make sure the code is properly formatted.
./vendor/bin/phpcs
If it shows formatting errors, then you can fix them with the
./vendor/bin/phpcbf
command - Run tests
vendor/bin/phpunit tests
- Set
SDK_VERSION
constant inConfigCatClient.php
- Commit & Push
-
Via git tag
- Create a new version tag.
git tag v[MAJOR].[MINOR].[PATCH]
Example:
git tag v1.3.5
- Push the tag.
git push origin --tags
- Create a new version tag.
-
Via Github release
Create a new Github release with a new version tag and release notes.
Make sure the new version is available on Packagist.
Update and test sample apps with the new SDK version.
composer update configcat/configcat-client
To validate installed package version
composer show