RESAZIP-PC\resaz

update

1 # How to use package 1 # How to use package
2 -1. Add this code into composer.json of your project 2 +
3 -``` 3 +## 1) Add repository to composer.json
4 +```json
4 "repositories": [ 5 "repositories": [
5 - { 6 + {
6 - "type": "vcs", 7 + "type": "vcs",
7 - "url": "git@gitlab.monotos.biz:pvduc/daito-utils.git" 8 + "url": "git@gitlab.monotos.biz:pvduc/daito-utils.git"
8 - } 9 + }
9 - ] 10 +]
10 ``` 11 ```
11 -2. Run command to install package 12 +
13 +## 2) Install package
14 +
15 +### Stable (recommended - install by tag)
16 +```bash
17 +composer require daito/lib:^1.0
12 ``` 18 ```
13 -# we use master branch 19 +
14 -# if has any changes it will request to last commit of Master branch default 20 +### Dev (testing latest branch code)
21 +```bash
15 composer require daito/lib:dev-master 22 composer require daito/lib:dev-master
16 ``` 23 ```
17 24
18 -#### **Note**: 25 +## 3) Update package
26 +
27 +### Stable
28 +```bash
29 +composer update daito/lib
30 +```
19 31
20 -If package changes, to project updates new changes 32 +### Dev branch
33 +```bash
34 +composer update daito/lib
21 ``` 35 ```
22 -composer update daito/lib:dev-master 36 +
37 +## Release by tag
38 +
39 +After code is ready on release branch (for example `production`), create and push tag:
40 +
41 +```bash
42 +git tag v1.0.0
43 +git push origin v1.0.0
44 +```
45 +
46 +Then projects using this package can update to the new stable version:
47 +
48 +```bash
49 +composer require daito/lib:^1.0
50 +# or
51 +composer update daito/lib
23 ``` 52 ```
...\ No newline at end of file ...\ No newline at end of file
......
1 <?php 1 <?php
2 namespace Daito\Lib; 2 namespace Daito\Lib;
3 3
4 -class StringUtils { 4 +class DaitoString {
5 public static function toUpper($text){ 5 public static function toUpper($text){
6 - return strtoupper("$text xxx..."); 6 + return strtoupper($text);
7 } 7 }
8 public static function toLower($text){ 8 public static function toLower($text){
9 return strtolower($text); 9 return strtolower($text);
......