Download the PHP package kerwin/simpleframe without Composer

On this page you can find all versions of the php package kerwin/simpleframe. 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 simpleframe

目錄

  1. 系統資訊
  2. Database
    1. 介紹
    2. 指令
  3. Container
  4. Controller
  5. Model
    1. 介紹
    2. 設定主鍵
    3. 將Models加入Container
    4. 功能
  6. View
    1. 介紹
    2. LayoutExtension
    3. 應用
  7. Route
    1. 介紹
    2. 應用
  8. Middleware
    1. 介紹
    2. 應用
  9. Log
    1. 介紹
    2. 應用

系統資訊

🔼

PHP 7.4.13
MariaDB 10.4.17
Apache 2.4.46

1. 安裝框架

2. 安裝npm套件

3. 建立tailwind css

開發時使用:

開發完成後使用:

4. 設定webpack

開發時使用:

開發完成後使用:

5. setting.php

6. .htaccess

7. 建立資料庫及資料

8. 降php版本


Database

🔼

介紹

使用robmorgan/phinx,透過指令的方式將資料表建立或加入測試資料。

資料表schema放在/database/migrations底下,資料建立放在/database/seeds底下。

如果要更改放置位子可以到/phinx.php中修改

phinx.php

指令

建立migration

詳細請參考這裡


Container

🔼

app\config.php中加入設定並透過app\bootstrap.php執行。

相關設定請參考: https://php-di.org/


Controller

🔼

放在app\Http\Controller底下,function可以使用加入Container的類別(class)


Model

🔼

介紹

放在app\Models底下,必須要加入Container,可以對。

設定主鍵

將Models加入Container

功能

all

回傳全部列數資料

find

回傳特定主鍵資料

insert

新增資料

update

更新資料

delete

刪除資料


View

🔼

介紹

View是使用Twig,透過Route將View呈現出來

LayoutExtension

設定View Extension

SimpleFrame已經做一些基本的設定,位於App\Services\Twig\LayoutExtension.php,相關設定可以參考這裡

應用

index.twig


Route

🔼

介紹

路由是使用nikic/FastRoute為基底做修改,在simpleframe/index.php中設定

應用


Middleware

🔼

介紹

  1. 中間件必須建立在App\Http\Middleware底下,必須使用抽象類別Kerwin\Core\Router\Middleware\Middleware

  2. 建立中間件後必須要加入Container。

  3. 中間件設定必須加在addRouteaddGroup前方,如果加在addGroup則底下路由都會生效。

應用

Middleware

Container

Route


Log

🔼

介紹

使用monolog搭配自己建立的PDOHandler將Log資料儲存在資料庫中,已經有將Log加入Container中

應用


All versions of simpleframe with dependencies

PHP Build Version
Package Version
Requires vlucas/phpdotenv Version ^5.3
robmorgan/phinx Version ^0.12.5
fzaninotto/faker Version ^1.9
wixel/gump Version ^1.12
maximebf/debugbar Version ^1.16
kerwin/core Version dev-main
kerwin/captcha Version ^1.0
monolog/monolog Version ^2.3
guzzlehttp/guzzle Version ^7.3
jenssegers/agent Version ^2.6
php-di/php-di Version ^6.3
twig/twig Version ^3.3
nikic/fast-route Version ^1.3
symfony/var-dumper Version ^5.3
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 kerwin/simpleframe contains the following files

Loading the files please wait ....