Download the PHP package gamernetwork/yolk-contracts without Composer

On this page you can find all versions of the php package gamernetwork/yolk-contracts. 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 yolk-contracts

Want to work for Gamer Network? We are hiring!

Yolk Contracts

Introduction

This package defines the interfaces and traits for the core services used throughout the Yolk framework. e.g. yolk\contracts\database\DatabaseConnection defines the contract for accessing a database, while the yolk\contracts\support\collections\Dictionary contract defines methods for operating on a collection of key/value pairs.

Each directory corresponds to a Yolk package that provides implementations of the interfaces defined in that directory. For example, the gamernetwork/yolk-log package contains implementions of yolk\contracts\log\Logger.

Why Contracts?

A separate contracts package provides two primary benefits:

Quick Reference

Having all of the framework's services neatly defined within interfaces provides succinct documentation to available features.

Rather than tracking down which methods are available within a large, complicated class, you can refer to a simpler, cleaner interface.

Loose Coupling

Wikipedia Reference

Yolk packages provide default and usually basic implementations of each contract, that sometimes might not be sufficient or quite right for a particular project.

By specifying contracts, code is no longer coupled to these specific implementations and you may easily write alternatives that better suit your project.

Likewise, you can switch between implementations without modifying any consuming code. The classic example being able to switch caching backends (e.g. Memory/Redis/Memcache) without modifying any code that uses the cache.

Naming Conventions

Interfaces in this package are named in one of two ways:

The implementations of those interfaces with in Yolk components are usually prefixed with "Base-", although there are some variations - in particular some implementations still use the deprecated prefix "Generic-".


All versions of yolk-contracts with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
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 gamernetwork/yolk-contracts contains the following files

Loading the files please wait ...