Commit faf00d54 authored by Kunkka王辉's avatar Kunkka王辉 😲

init 仓库

parents
# 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
{
"name": "galaxy/nacos-client",
"description": "nacos-client tool",
"require": {
"php": ">=7.3"
},
"autoload": {
"psr-4": {
"Galaxy\\NacosClient\\": "src/"
}
},
"authors": [
{
"name": "wh"
}
],
"bin": [
"nacos-client"
]
}
#!/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
<?php
namespace Galaxy\NacosClient\Nacos;
class Nacos
{
public static function run()
{
var_dump("hello world");
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment