# php-capsule **Repository Path**: liuxiaojinla/php-capsule ## Basic Information - **Project Name**: php-capsule - **Description**: 快速开始你的应用开发。内置基础驱动管理器、服务等通用控件,开发你的多驱动类包吧。 - **Primary Language**: PHP - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-05-07 - **Last Updated**: 2024-12-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: 驱动, Service, 服务, driver ## README # capsule #### 介绍 快速开始你的应用开发。内置基础驱动管理器、服务等通用控件,开发你的多驱动类包吧。 #### 安装教程 `composer require xin/capsule` #### 使用说明 ```php class Rebot extends Manager { /** * @inerhitDoc */ public function getDefaultDriver() { return $this->getConfig('defaults.robot', 'default'); } /** * @inerhitDoc */ public function setDefaultDriver($name) { $this->setConfig('defaults.robot', $name); } /** * @inerhitDoc */ public function getDriverConfig($name) { $key = 'robots'; return $this->getConfig($name ? "{$key}.{$name}" : $key); } } ```