定制 afto/microservice 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

afto/microservice

Composer 安装命令:

composer create-project afto/microservice

包简介

A microservice project for PHP

README 文档

README

Afto is an optimized solution for PHP developers supporting the PSR-4 autoloading standard. It is designed for easy integration, microservice architecture, and optimized performance. This project provides a solid foundation for PHP developers to create scalable and maintainable applications.

Features

  • Supports PSR-4 autoloading standard, making it easy to organize classes into namespaces and directories.
  • Microservice-based architecture for scalable application development.
  • Easy integration with Docker for containerized deployments.
  • Optimized and well-tested performance for production use.

Installation

1. Create a New Project

To create a new project, run the following command:

composer create-project afto/microservice

This will create a new project using the afto/microservice template.

2. Install Dependencies

Once the project is created, navigate into the project directory and install the necessary dependencies using Composer:

composer install

3. Start the PHP Built-in Server

Once the dependencies are installed, you can start the PHP built-in server for testing purposes:

php -S localhost:8000

4. Run Docker

To run the application inside Docker, use the following command to build and start the Docker container in detached mode:

docker-compose up --build -d

This will build the Docker container and run it in the background.

5. PHPUnit Testing

To run the PHPUnit tests and check the functionality of your code, navigate to the core directory and use the following command:

cd core ../vendor/bin/phpunit

6. Remove Docker

To clean up your Docker environment and remove all stopped containers, unused networks, and volumes, use the following command:

docker system prune -a --volumes

This will remove unused Docker resources and free up disk space.

7. Run psalm.dev

To check the code quality and find potential issues, run Psalm, a static analysis tool for PHP:

vendor/bin/psalm

This will analyze your code and provide suggestions to improve it.

GitHub Repository

Visit the Afto GitHub Repository for more details, issues, pull requests, and contributions.

Repository Statistics

  • Stars: {{stargazers_count}}
  • Forks: {{forks_count}}
  • Open Issues: {{open_issues_count}}

Contributing

We welcome contributions to Afto. If you would like to improve or report bugs in the project, please open an issue or submit a pull request on GitHub.

To contribute:

  1. Fork the repository
  2. Create a new branch (git checkout -b feature/your-feature)
  3. Make your changes
  4. Commit your changes (git commit -am 'Add a new feature')
  5. Push to the branch (git push origin feature/your-feature)
  6. Create a new pull request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Crafted with ❤️ by Seyed Mohammad Hosseini

afto/microservice 适用场景与选型建议

afto/microservice 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 03 月 13 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 afto/microservice 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 afto/microservice 我们能提供哪些服务?
定制开发 / 二次开发

基于 afto/microservice 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-03-13