Download the PHP package marsapp/system-helper without Composer

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

System Helper

Helper for system operation.

Latest Stable Version Total Downloads Latest Unstable Version License

plastic

1. Outline

2. Description

3. Installation

3.1. composer install

4. Dependency

5. Usage

5.1. Cookie

5.1.1. Setting

5.1.2. Cookie Default Option - Single

5.1.2.1. Description

cookieOption(string $param, string $value = null) : string|null

5.1.2.2. Parameters

  • When $param does not exist, return null
  • When there is $param but no $value(null), get the current value of $param
  • When there is $param and $value, after updating the data, the updated value will be returned

5.1.2.3. Return Values

string|null

5.1.2.4. Example

5.1.3. Set Cookie Default Option - Multiple

5.1.3.1. Description

cookieOptions(array $options = []) : array

5.1.3.2. Parameters

5.1.3.3. Return Values

array, return complete cookie default options.

5.1.3.4. Example

5.1.4. Set Cookie

5.1.4.1. Description

cookieSet(string $name, string $value = "", array $options = []) : bool

Set Cookie, Wrap the PHP native function setcookie() to simplify usage.

5.1.4.2. Parameters

5.1.4.3. Return Values

bool, like PHP function setcookie()

5.1.4.4. Example

  • $options可用參數
    • 'prefix' => '', // Cookie前綴,預設無前綴
    • 'expires' => time()+3600, // 過期時間,預設無期限
    • 'path' => '/', // 存放路徑
    • 'domain' => "", // 所屬網域
    • 'secure' => true, // 是否只在https生效
    • 'httponly' => false, // 是否只能通過HTTP協議訪問

5.1.5. Set Cookie on root domain

5.1.5.1. Description

cookieSetRoot(string $name, string $value = "", array $options = []) : bool

Like cookieSet(), but domain fixed on root domain.

5.1.6. Get Cookie

5.1.6.1. Description

cookieGet(string $name) : mixed

取得目標Cookie值

5.1.7. Delete Cookie

5.1.7.1. Description

cookieExpired(string $name, array $options = []) : bool

Delete target cookie.

5.1.8. Delete Cookie on root domain

5.1.8.1. Description

cookieExpiredRoot(string $name, array $options = []) : bool

Like cookieExpired(), but domain fixed on root domain.

6. Example

see: example/example-cookie.php

7. Contributing


All versions of system-helper with dependencies

PHP Build Version
Package Version
Requires php Version ^7
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 marsapp/system-helper contains the following files

Loading the files please wait ....