Skip to content

liufee/php

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

php

A library for php

##Introduction This is a php lib, contains common php tools

##Tools

  1. Http Request(get and post)

##Install

  1. Use Composer install(recommended)
  1.create composer.json require feehi/standard
   eg:
   {
        "require": {
            "feehi/standard" : "*"
        }
   }
   if chinese goes eg:
   {
        "require": {
            "feehi/standard" : "*"
        },
        "repositories": [
            {"type": "composer", "url": "http://packagist.phpcomposer.com"},
            {"packagist": false}
        ]
   }
  2.run command "composer update"

composer-install-feehi-standard

##Usage

  1. Http request
  <?php
  require "vendor/autoload.php";

  use Feehi\Http;

  $http = new Http();
  $res = $http->get("http://blog.feehi.com");
  $res = $http->post("http://blog.feehi.com", ['username'=>'xxx','password'=>'yyy']);
  var_dump($res);

feehi-standard-http-eg

About

A php library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages