anzeblabla/framework 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

anzeblabla/framework

最新稳定版本:0.0.8

Composer 安装命令:

composer require anzeblabla/framework

包简介

A toy project PHP framework

README 文档

README

This is a PHP framework that is just a fun little project so I have something to do. It is not meant to be used in any way, as it's very bad.

Functionality

The framework is very simple. The basic idea is that every component is it's own file, then you can reuse components with different props (similar to React).

Inside the components you mostly use the helper object provided to do things like add functionality to buttons. You can also store data directly in $this->data and it will be auto-saved to the session.

There's also a built-in connection to the DB. You can use it by calling $this->db->query() or $this->db->queryOne() or $this->db->execute().

Using this feels like a shitty version of React where you have to mess around with PHP's general shittiness. Good luck ;)

Goal

My goal was to create a tool where all the logic (frontend and backend) + styles could be in one file (similar to Next.js).

Todo

  • File system routing
    • Basic functionality
    • Dynamic routes
    • Layouts
    • Rewrites and redirects
  • Documentation
  • Solve problem where data is kept even when you don't want it (duh, everything is stored in session) - for example when a component is rerendered
  • Only rerender components that have changed

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2023-04-27