mtoolkit/mtoolkit-core 问题修复 & 功能扩展

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

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

mtoolkit/mtoolkit-core

Composer 安装命令:

composer require mtoolkit/mtoolkit-core

包简介

The core module of MToolkit framework

README 文档

README

The core module of MToolkit framework.

Build Status

Summary

Install

{
    "require": {
        "mtoolkit/mtoolkit-core": "..."
    }
}

Or run the console command:

composer require mpstyle/mtoolkit-core

Into

The core module contains some utility classes like: MList, MGet, MPost.

Theese wrap the core functionalities of PHP in a class. Let me explain.

MList

It implements a list of object (custom or primitive) and provides the methods to work with them:

  • append: adds a new item at the end of the list
  • appendArray: adds all the item in the array argument at the end of the list
  • clear: empty the list
  • count: returns the number of the item
  • isEmpty: removes all items from list They are only some of the methods to work with a list of objects.

MGet and MPost

As the names suggest, you can use theese classes to access to the globals $_GET and $_POST. They are "read only" MMap, so it is impossible to call methods as: clear, erase and others. To retrieve the value in the global $_GET write:

$get=new MGet();
$id=$get->getValue('id');

In a similar way for $_POST:

$post=new MPost();
$id=$post->getValue('id');

If 'id' is not set, it returns null.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: LGPL-3.0
  • 更新时间: 2016-01-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固