2017 © Pedro Peláez
 

library communia

image

guilhermegeek/communia

  • Thursday, June 16, 2016
  • by guilhermegeek
  • Repository
  • 1 Watchers
  • 0 Stars
  • 14 Installations
  • Hack
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Communia

DON'T USE THIS - NOT READ YET!, (*1)

A common library i created from pi-framework and i reused in others projects., (*2)

A set of tools and common implementations/interfaces i use as well., (*3)

Http Request

HttpRequest is a utility object to execute HTTP requests supporting features like headers, cookies and authentication., (*4)

Responses are returned as HttpMessage, (*5)

Container

My implementation for a IOC is horrible and temporary. I've wrote a custom one because i want direct implementation with cache mechanism and others providers like AbstractMetadataFactory and AbstractHydratorFactory., (*6)

Cache Provider

The Cache Providers implements the ICacheProvider interface:, (*7)

public function get($key = null) : ?mixed; 
public function set($key, $value) : void;
public function getArray(string $key) : ?array;
public function push(string $key, string $value) : void;
public function pushObject(string $key, mixed $obj) : void;
public function getAs(string $key, string $className) : ?mixed;
public function getMap(string $key) : ?Map<string,string>;
public function pushMap(string $key, string $mapKey, string $mapValue) : void;
public function contains($key) : bool;

Available Cache Providers + APC + Redis (not finished yet) + Memcached (not testes yet), (*8)

Log

The Log Providers implements the ILogFactory interface. Each factory is responsible for returning a ILog instance (available for specific types) implementing:, (*9)

public function debug(string $message);
public function error($message);
public function fatal($message);
public function info($message);
public function warn($message);

The Versions

16/06 2016

dev-master

9999999-dev

  Sources   Download

The Development Requires

29/05 2016

v0.2.x-dev

0.2.9999999.9999999-dev

  Sources   Download

The Development Requires