zhangxd vor 4 Jahren
Commit
da17ef9280
6 geänderte Dateien mit 75 neuen und 0 gelöschten Zeilen
  1. 3 0
      .gitignore
  2. 21 0
      LICENSE
  3. 10 0
      README.md
  4. 25 0
      composer.json
  5. 8 0
      src/DateTimeUtils.php
  6. 8 0
      src/StringUtils.php

+ 3 - 0
.gitignore

@@ -0,0 +1,3 @@
+.code
+composer.lock
+vendor

+ 21 - 0
LICENSE

@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2018 Николай Сидорович
+
+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 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.

+ 10 - 0
README.md

@@ -0,0 +1,10 @@
+# USAI Common Utils
+
+This is a common utils project for United Software Application, Inc.
+
+Include:
+usai\Common\Utils\StringUtils.php
+usai\Common\Utils\DateTimeUtils.php
+usai\Common\Utils\LogsUtils.php
+usai\Common\Utils\CacheUtils.php
+usai\Common\Utils\DBUtils.php

+ 25 - 0
composer.json

@@ -0,0 +1,25 @@
+{
+    "name": "usai/common_utils",
+    "description": "The common utils class or component for USAI",
+    "keywords": ["php", "utils"],
+    "license": "MIT",
+    "authors": [
+        {
+            "name": "usai",
+            "email": "pm@united-cn.net"
+        }
+    ],
+    "minimum-stability": "dev",
+    "autoload": {
+        "psr-4": {
+            "usai\\Common\\Utils\\": "src"
+        }
+    },
+    "require": {
+    	"php": ">=7.2"
+    }
+    ,
+    "require-dev": {
+        "roave/security-advisories": "dev-master"
+    }
+}

+ 8 - 0
src/DateTimeUtils.php

@@ -0,0 +1,8 @@
+<?php
+
+namespace usai\Common\Utils;
+
+class DateTimeUtils
+{
+    
+}

+ 8 - 0
src/StringUtils.php

@@ -0,0 +1,8 @@
+<?php
+
+namespace usai\Common\Utils;
+
+class StringUtils
+{
+    
+}