定制 edujugon/core 二次开发

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

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

edujugon/core

Composer 安装命令:

composer require edujugon/core

包简介

Set of useful Classes and Functions.

README 文档

README

Set of useful Classes and Functions.

Available Classes

Date

Methods

getMonths

Syntax

getMonths method gets the months list. You may pass lang, offset and length through parameters.

        /**
         * Get months list.
         *
         * if lang is null, "en" language is set by default.
         * if offset is null return all items.
         *
         * If offset is non-negative, the sequence will start at that offset in the array.
         * If offset is negative, the sequence will start that far from the end of the array.
         *
         * If length is given and is positive, then the sequence will have up to that many elements in it.
         * If the array is shorter than the length, then only the available array elements will be present.
         * If length is given and is negative then the sequence will stop that many elements from the end of the array.
         * If it is omitted, then the sequence will have everything from offset up until the end of the array.
         *
         * @param $lang
         * @param null $offset
         * @param null $length
         * @return array|mixed
         */
        array getMonths($lang = NULL, $offset = NULL, $length = NULL)

Number

Methods

myList

Syntax

myList method gets array of numbers. You must pass a starting number and a length of desired array.

        /**
         * Get Array of numbers.
         *
         * If length is negative returns previous numbers
         * If length is positive returns following numbers
         * The total items of the array is the starting number parameter plus the length amount.
         * so if length value is 3 or -3 it will return an array of 4 items.
         *
         * @param $start
         * @param int $length
         * @return array
         */
        array myList($start, $length = 0)

FindReplace

Methods

soft

Syntax

soft method gets a new string replacing the searched substring for a replacement in a text.

        /**
             * Soft find&replace where do a strtolower either the find text and the text where search.
             * It's no case sensitive. Foo == foo
             *
             * @param $find
             * @param $replace
             * @param $text
             * @return mixed
             */
            string static function soft($find, $replace, $text)

strict

Syntax

strict method gets a new string replacing the searched substring for a replacement in a text.

Case Sensitive

        /**
             * Strict find&replace it search for the exact substring($find) inside the text.
             * It's case sensitive Foo != foo
             *
             * @param $find
             * @param $replace
             * @param $text
             * @return mixed
             */
            string static function strict($find, $replace, $text)

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-10-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固