定制 samuelgfeller/slim-example-project 二次开发

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

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

samuelgfeller/slim-example-project

Composer 安装命令:

composer create-project samuelgfeller/slim-example-project

包简介

Example project with the slim micro-framework

README 文档

README

Documentation Installation Code Coverage Build Status Quality Score Software License

Real-world example of a modern Slim 4 web application with a scalable structure and a variety of components and features.

The project applies current best practices and programming principles, with a strong emphasis on the SOLID Single Responsibility Principle (SRP).
External library dependencies are kept to a minimum to facilitate maintenance and ensure long-term viability.

The architecture is inspired by the Domain Driven Design (DDD) and the Vertical Slice Architecture.

A detailed documentation explains how the project is built, components, design choices and features.

Stripped down versions of this repository are available as skeleton templates. With frontend slim-starter or just for an API: slim-api-starter.

Please read the installation guide to get started.

Features

All the features were developed with an effort to ensure maximum user-friendliness. The frontend, intuitive, aesthetically pleasing, minimalistic, and functional. The backend, efficient and secure.

Technologies:

Functionalities demonstrating real-world features:

This project is currently designed for non-profit organizations or foundations that require a platform to manage and maintain a record of communication through notes of people they help.

  • Authentication (login)
  • Authorization (permissions)
  • Account verification and password reset via email link and token
  • Request throttling - protection against brute force and password spraying attacks
  • User management for administrators
  • 4 user roles and different permissions
  • User activity history
  • Client creation and mutation with status and attributed user
  • Client list filtering by text input and filter chips
  • Note creation and mutation
  • Hidden notes from unauthorized users
  • Dashboard with panels
  • Dark / light theme
Click to see demo

Link: Login
Username: admin@user.com
Password: 12345678
The database is regularly reset.

Motivation to create this project

There is a ton of great content on the internet about learning how to write clean and sustainable code. However, I found myself searching for more than just skeleton projects or general documentations and tutorials when I wanted to learn how to do things within the scope of a potential real-world application. I never found resources such as an open-source, efficient implementation of all the features surrounding a full-sized project.

This is what I try to provide here. This project isn't just a skeleton, it contains a lot of opinionated practical examples on how to implement features that are often necessary in real-world applications.

That includes authorization, integration testing, localization, validation, error handling, database migrations, mailing, console commands, request throttling, lightweight PHP template rendering, GitHub Actions, and more along with detailed explanations in the documentation.

But it's not just about the features. Equally important are the architecture and how the components interact with each other, following modern principles such as the Single Responsibility Principle and Dependency Injection.

Of course, there are big frameworks that have their own well-established set of programming conventions and implementations of features.

However, I find them often too complex, where the code makes too much "behind the scenes" and with lots of dependencies, which can lead to time-consuming refactoring on version changes.
I also dislike having to follow the propitiatory rules of a framework which often don't follow best practices and much prefer the freedom of a micro-framework and carefully choosing the libraries and structure that make sense for the project.
This lets me stay in control of the codebase, keep it lightweight, performant and tailored to the needs of the project, and it's easier to maintain and adapt to new requirements.

Disclaimer

This project and its documentation are the result of my personal learning process in the last 6 years in trying to create the best possible template app with lots of real world examples. Three of the 6 years were spent full time on this project alone.
I made what wish I had when I started getting seriously into web development.

The codebase is big and thus lots of subjective decisions had to be made that may not be the best long-term solution for everybody.

The main focus throughout the development was to make the code as long living as possible with best practices and few dependencies so that it can be adapted to different needs and preferences.

Basically, this is my take on what an efficient, extensible, and maintainable web app could look like with today's tech.

I worked closely with the software engineer and architect Daniel Opitz, who also reviewed this project. I learned a lot during our exchanges and was inspired by his books, articles, tutorials and his slim skeleton-project.

Support

Please read the Support❤️ page if you value this project and its documentation and want to support it.

License

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

samuelgfeller/slim-example-project 适用场景与选型建议

samuelgfeller/slim-example-project 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 227 次下载、GitHub Stars 达 82, 最近一次更新时间为 2023 年 01 月 12 日, 在 PHP 生态内属于活跃度较高的组件。

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

围绕 samuelgfeller/slim-example-project 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

  • Stars: 82
  • Watchers: 4
  • Forks: 8
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-01-12