Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Satini_pvduc
/
daito-utils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Authored by
RESAZIP-PC\resaz
2026-02-20 21:54:59 +0700
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Commit
4cfa58fd7a6e2bba8bddaf7cea7a039925256e63
4cfa58fd
1 parent
927efdcb
update
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
11 deletions
README.md
src/StringUtils.php
README.md
View file @
4cfa58f
# How to use package
1.
Add this code into composer.json of your project
```
## 1) Add repository to composer.json
```
json
"repositories"
:
[
{
"type"
:
"vcs"
,
"url"
:
"git@gitlab.monotos.biz:pvduc/daito-utils.git"
}
]
]
```
2.
Run command to install package
## 2) Install package
### Stable (recommended - install by tag)
```
bash
composer require daito/lib:^1.0
```
# we use master branch
# if has any changes it will request to last commit of Master branch default
### Dev (testing latest branch code)
```
bash
composer require daito/lib:dev-master
```
#### **Note**:
## 3) Update package
### Stable
```
bash
composer update daito/lib
```
If package changes, to project updates new changes
### Dev branch
```
bash
composer update daito/lib
```
composer update daito/lib:dev-master
## Release by tag
After code is ready on release branch (for example
`production`
), create and push tag:
```
bash
git tag v1.0.0
git push origin v1.0.0
```
Then projects using this package can update to the new stable version:
```
bash
composer require daito/lib:^1.0
# or
composer update daito/lib
```
\ No newline at end of file
...
...
src/StringUtils.php
View file @
4cfa58f
<?php
namespace
Daito\Lib
;
class
StringUtils
{
class
DaitoString
{
public
static
function
toUpper
(
$text
){
return
strtoupper
(
"
$text
xxx..."
);
return
strtoupper
(
$text
);
}
public
static
function
toLower
(
$text
){
return
strtolower
(
$text
);
...
...
Please
register
or
sign in
to post a comment