Download the PHP package bapcat/propifier without Composer

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

Build Status Coverage Status License

Propifier

A trait that adds real object-oriented property support to PHP.

Installation

Composer

Composer is the recommended method of installation for all BapCat packages.

GitHub

BapCat packages may be downloaded from GitHub.

The Problem With PHP "Properties"

Anyone coming from another language like .NET will probably be accustomed to defining properties (accessors and mutators) to control access to private variables of a class. Unfortunately, PHP lacks support for this useful feature. There are several workarounds...

Public Properties

Using public properties is the easiest, but completely lacks encapsulation. You have no control over who can change the internal state of your object.

__get and __set

Using PHP's late binding support gives you control over what can be read from and written to your object, but sacrifices readability, efficiency, and type hinting. It's also not possible to control read/write access to arrays this way without using other workarounds.

Getters and Setters

Using Java-style getters and setters is one of the best ways to implement properties in PHP, but still has flaws. It is very verbose:

You must also forgo using array access syntax to access array properties:

The Propifier Way

Propifier solves every one of these problems.

Efficiency

Propifier will make you more efficient at writing code that matters, and unlike similar solutions, Propifier is designed from the ground up to be fast. It figures everything out at the start, and maintains a static mapping of all of your objects' properties so using them is always fast.


All versions of propifier with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
icanboogie/inflector Version ^2.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 bapcat/propifier contains the following files

Loading the files please wait ....