basil 2 år sedan
förälder
incheckning
fc8d8b9ccd
7 ändrade filer med 107 tillägg och 0 borttagningar
  1. 1 0
      .gitignore
  2. 8 0
      .idea/modules.xml
  3. 8 0
      .idea/time-helper.iml
  4. 6 0
      .idea/vcs.xml
  5. 57 0
      .idea/workspace.xml
  6. 17 0
      composer.json
  7. 10 0
      src/time/Index.php

+ 1 - 0
.gitignore

@@ -0,0 +1 @@
+/vendor/

+ 8 - 0
.idea/modules.xml

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="ProjectModuleManager">
+    <modules>
+      <module fileurl="file://$PROJECT_DIR$/.idea/time-helper.iml" filepath="$PROJECT_DIR$/.idea/time-helper.iml" />
+    </modules>
+  </component>
+</project>

+ 8 - 0
.idea/time-helper.iml

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module type="WEB_MODULE" version="4">
+  <component name="NewModuleRootManager">
+    <content url="file://$MODULE_DIR$" />
+    <orderEntry type="inheritedJdk" />
+    <orderEntry type="sourceFolder" forTests="false" />
+  </component>
+</module>

+ 6 - 0
.idea/vcs.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="VcsDirectoryMappings">
+    <mapping directory="$PROJECT_DIR$" vcs="Git" />
+  </component>
+</project>

+ 57 - 0
.idea/workspace.xml

@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="ChangeListManager">
+    <list default="true" id="473128e5-09bc-4833-8164-cf3663399fc8" name="Default Changelist" comment="" />
+    <option name="SHOW_DIALOG" value="false" />
+    <option name="HIGHLIGHT_CONFLICTS" value="true" />
+    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
+    <option name="LAST_RESOLUTION" value="IGNORE" />
+  </component>
+  <component name="ComposerSettings">
+    <execution />
+  </component>
+  <component name="Git.Settings">
+    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
+  </component>
+  <component name="ProjectId" id="281GfB7KbjviI6Tp6eCLeBoRVxd" />
+  <component name="ProjectLevelVcsManager">
+    <ConfirmationsSetting value="1" id="Add" />
+  </component>
+  <component name="ProjectViewState">
+    <option name="hideEmptyMiddlePackages" value="true" />
+    <option name="showLibraryContents" value="true" />
+  </component>
+  <component name="PropertiesComponent">
+    <property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
+    <property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
+    <property name="WebServerToolWindowFactoryState" value="false" />
+    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
+    <property name="vue.rearranger.settings.migration" value="true" />
+  </component>
+  <component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
+  <component name="TaskManager">
+    <task active="true" id="Default" summary="Default task">
+      <changelist id="473128e5-09bc-4833-8164-cf3663399fc8" name="Default Changelist" comment="" />
+      <created>1650376778730</created>
+      <option name="number" value="Default" />
+      <option name="presentableId" value="Default" />
+      <updated>1650376778730</updated>
+      <workItem from="1650376780777" duration="1009000" />
+    </task>
+    <servers />
+  </component>
+  <component name="TypeScriptGeneratedFilesManager">
+    <option name="version" value="3" />
+  </component>
+  <component name="Vcs.Log.Tabs.Properties">
+    <option name="TAB_STATES">
+      <map>
+        <entry key="MAIN">
+          <value>
+            <State />
+          </value>
+        </entry>
+      </map>
+    </option>
+  </component>
+</project>

+ 17 - 0
composer.json

@@ -0,0 +1,17 @@
+{
+    "name": "basil/time-helper",
+    "description": "a time helper",
+    "type": "library",
+    "authors": [
+        {
+            "name": "basil",
+            "email": "15813246678@163.com"
+        }
+    ],
+    "require": {},
+    "autoload": {
+        "psr-4": {
+            "Basil\\Time\\": "src/time"
+        }
+    }
+}

+ 10 - 0
src/time/Index.php

@@ -0,0 +1,10 @@
+<?php
+namespace Basil\Time;
+
+class Index
+{
+    public static function now()
+    {
+        return date("Y-m-d H:i:s");
+    }
+}