承接 dillonsmart/tetherphp 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dillonsmart/tetherphp

最新稳定版本:v0.2.3

Composer 安装命令:

composer create-project dillonsmart/tetherphp

包简介

TetherPHP is a PHP framework which ships as a skeleton application.

README 文档

README

TetherPHP Logo

Total Downloads Latest Stable Version License

About TetherPHP

TetherPHP is a lightweight, flexible framework for building web applications in PHP using the ADR (Action-Domain-Responder) architecture. It provides a simple and intuitive way to structure your application, making it easy to develop and maintain.

Follow the development on X

Features

  • ADR Architecture — Clean separation of concerns using the Action-Domain-Responder pattern
  • Routing — Simple routing with support for dynamic parameters and route grouping
  • Session & CSRF Protection — Built-in session management and CSRF token validation
  • Environment Configuration.env file support for managing application settings
  • CLI Tools — Code generation commands for scaffolding Actions, Domains, and Responders
  • Tailwind CSS — Pre-configured with Tailwind CSS for styling
  • Logging — Built-in logging to the storage/ directory

Requirements

  • PHP 8.4 or higher
  • Composer

Installation

Install TetherPHP using Composer:

composer create-project dillonsmart/tetherphp ./

Copy the .env.example file to .env and configure your application settings:

cp .env.example .env

Building Assets

TetherPHP uses Tailwind CSS for styling. Install dependencies and build the stylesheet:

npm install && npx tailwindcss -i ./resources/css/app.css -o ./public/css/app.css --watch

Project Structure

├── app/
│   ├── Actions/        # Request handlers
│   ├── Domains/        # Business logic
│   ├── Responders/     # Response formatters
│   └── Views/          # Templates and partials
├── public/             # Web root (index.php, compiled assets)
├── resources/          # Source assets (CSS)
├── routes/             # Route definitions
├── src/                # Core framework library
│   └── framework/
│       ├── Commands/   # CLI commands
│       ├── DTOs/       # Data Transfer Objects
│       ├── Helpers/    # Utility functions
│       ├── Interfaces/ # Contracts
│       ├── Modules/    # Core modules (Env, Console, Log)
│       ├── Requests/   # Request handling
│       ├── Sessions/   # Session & CSRF management
│       └── Stubs/      # Code generation templates
└── storage/            # Logs and application storage

Usage

To get started with TetherPHP, please refer to the documentation.

Monorepo

This repository is a monorepo. The core framework code in src/ is automatically split and published to tetherphp-core via GitHub Actions using splitsh-lite.

Local Development

For local development of TetherPHP alongside the core framework files, create a composer.local.json file:

{
    "repositories": [
        {
            "type": "path",
            "url": "../tetherphp-core"
        }
    ],
    "require": {
        "dillonsmart/tetherphp-core": "*"
    },
    "minimum-stability": "dev",
    "prefer-stable": true
}

Then run:

COMPOSER=composer.local.json composer update

You can also create an alias for convenience:

alias composer-local='COMPOSER=composer.local.json composer update'

统计信息

  • 总下载量: 11
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 17
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 16
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-07-27