Download the PHP package steady-as-hill/single-service-server without Composer

On this page you can find all versions of the php package steady-as-hill/single-service-server. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package single-service-server

单服务框架

说明(特色、局限性)

微服务重在微字,要拆解。它不是万能的方案,特大特长的,就需要考虑其他的框架了,甚至换语言

名词解释

参看

编写hello world

框架代码说明

运维管理说明

其他

关于库文件加载,基本分三种情况:

  1. 模块专属类库(library目录),在run.php的入口文件通过设置->initAutloadLocalLibrary(true),可以在启动时全部预先加载,此时就不需要相应的autoload函数了
  2. 对于遵循psr-4规范的类库目录,可以在run.php的入口开头加入相关autoload,或通过server->initIncludePath()指定尝试搜索目录(仅支持一个目录)
  3. 其他像composer这种外部类库,在run.php的入口开头加入相关autoload

ServiceSample 下是几个小的Service骨架

能用,但不一定合适你的情况能直接用,都是些很简单示例性的小服务

使用前修改:

  1. 合并所有_config目录下的配置
  2. 确认或修改bin/run.php 里 SingleService/Server.php 的路径
  3. 确认或修改bin/run.php 里 initServiceModule 那里模块路径
  4. 确认或修改bin/start.sh 里 配置文件获取方式

All versions of single-service-server with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package steady-as-hill/single-service-server contains the following files

Loading the files please wait ....