Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nacos-config
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Euan游根明
nacos-config
Commits
faf00d54
Commit
faf00d54
authored
Nov 28, 2023
by
Kunkka王辉
😲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init 仓库
parents
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
68 additions
and
0 deletions
+68
-0
.gitignore
.idea/.gitignore
+13
-0
composer.json
composer.json
+20
-0
nacos-client
nacos-client
+21
-0
Nacos.php
src/Nacos/Nacos.php
+14
-0
No files found.
.idea/.gitignore
0 → 100644
View file @
faf00d54
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
modules.xml
vcs.xml
php.xml
*.iml
\ No newline at end of file
composer.json
0 → 100644
View file @
faf00d54
{
"name"
:
"galaxy/nacos-client"
,
"description"
:
"nacos-client tool"
,
"require"
:
{
"php"
:
">=7.3"
},
"autoload"
:
{
"psr-4"
:
{
"Galaxy
\\
NacosClient
\\
"
:
"src/"
}
},
"authors"
:
[
{
"name"
:
"wh"
}
],
"bin"
:
[
"nacos-client"
]
}
nacos-client
0 → 100644
View file @
faf00d54
#!/usr/bin/env php
<?php
declare
(
strict_types
=
1
);
if
(
isset
(
$GLOBALS
[
'_composer_autoload_path'
]))
{
define
(
'NACOS_COMPOSER_INSTALL'
,
$GLOBALS
[
'_composer_autoload_path'
]);
unset
(
$GLOBALS
[
'_composer_autoload_path'
]);
}
else
{
foreach
(
array
(
__DIR__
.
'/../../autoload.php'
,
__DIR__
.
'/../vendor/autoload.php'
,
__DIR__
.
'/vendor/autoload.php'
)
as
$file
)
{
if
(
file_exists
(
$file
))
{
define
(
'NACOS_COMPOSER_INSTALL'
,
$file
);
break
;
}
}
unset
(
$file
);
}
require
NACOS_COMPOSER_INSTALL
;
\Galaxy\NacosClient\Nacos\Nacos
::
run
();
\ No newline at end of file
src/Nacos/Nacos.php
0 → 100644
View file @
faf00d54
<?php
namespace
Galaxy\NacosClient\Nacos
;
class
Nacos
{
public
static
function
run
()
{
var_dump
(
"hello world"
);
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment