Download the PHP package eternalphp/framework without Composer

On this page you can find all versions of the php package eternalphp/framework. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package framework

EternalPHP Framework

eternalphp/framework 是一个全栈的、轻量级的现代化 PHP Web 开发框架。它汲取了现代 PHP 框架的诸多优秀设计理念(如依赖注入容器、中间件、Pipeline、Eloquent ORM 等),同时依然保持了对 PHP 5.6+ 的兼容性,在轻量与现代化之间取得了良好的平衡。

系统要求

核心特性

本框架包含了一套完整的现代 Web 开发所需的组件库,主要特性包括:

安装说明

通过 Composer 进行安装或在项目依赖中引入:

执行:

目录结构介绍

框架的源码均位于 src/framework 中,主要模块如下:

生命周期概览

  1. 实例化 Application 容器:在入口文件中初始化 framework\Foundation\Application 实例。
  2. 初始化框架环境 (init):加载配置(Config)、定义基础路径、绑定核心服务。
  3. HTTP 调度:通过 Router 及 Pipeline 获取并执行匹配到的中间件链路(Middleware)。
  4. 触发 Controller:完成中间件调度后,实例化相应的 Controller ,执行业务逻辑。
  5. 返回 Response:通过规范的 Response 发送 HTTP 报文给客户端,并在周期末尾清理容器或触发终止事件。

ORM (Eloquent) 使用示例

框架内部实现了类似于 Laravel 的 Eloquent ORM,支持链式操作、自动分页、关联模型与事务处理。

1. 定义模型

模型类通常需要继承 framework\Database\Eloquent\Model,你可以在其中指定表名或主键:

2. 基础查询

内置丰富的查询构造器方法,支持连贯操作:

3. 数据新增

4. 数据更新

5. 数据删除

6. 事务操作

使用事务来保证复杂写入的一致性:

7. 模型关联(Relations)

框架支持常见的关联方法(HasOne, HasMany, BelongsTo 等等)。

作者与协议


All versions of framework with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6
filp/whoops Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package eternalphp/framework contains the following files

Loading the files please wait ...