Download the PHP package rpodwika/designpatterns without Composer

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

Design Patterns for PHP

Build Status Coverage Status Dependency Status Latest Stable Version Total Downloads Latest Unstable Version License

Why

For my own pratice and to help other programmers I decided to implement several Design Patterns in PHP. I hope you like it and you will find it helpful. If you have any suggestions how can I write something better please create pull request or message me

What are design patterns

Design problems are proven to work solutions for problems that often occur while writing applications.

Why to use them

Because they solve problems. You do not need to invent solution that is already working. How many times during your programmer career you had this feeling that you already solved problem that you are facing now? Same goes with patterns you have problem that could be solved using specific pattern. Keep in mind that you should not force your code to fit in patterns. It should come out naturally. Firstly K.I.S.S.

Implemented patterns

  1. Antipatterns
    • Singleton - One global instance of a class
  2. Behavioral
    • Adapter - adapt class behavior to new conditions without modifying source of original class
    • Chain of responsibility - Avoid coupling the sender of a request to its receiver by giving more than one object a chance to handle the request
    • Memento - Without violating encapsulation, capture and externalize an object's internal state
    • Observer - Define one to many dependency between objects so that when one changes state, all its dependents are notified and updated automatically
    • Proxy - Do some operations before giving access to origin object
    • State - allow object to alter its behavior depending on current internal state change.
    • Strategy - Define a family of algorithms and make them interchangeable.
  3. Creational
    • Abstract Factory - Provides interface for creating families of objects working together without specification of concrete classes
    • Factory - Define an interface for creating an object but let the subclasses decide which class to instantiate
  4. Structural
    • Decorator - Attach additional object features dynamically without subclassing or modifying source class.

To be implemented


All versions of designpatterns with dependencies

PHP Build Version
Package Version
Requires phpunit/phpunit Version ^4.7
satooshi/php-coveralls Version dev-master
sebastianbergmann/phpcov Version 1.1.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 rpodwika/designpatterns contains the following files

Loading the files please wait ....