Download the PHP package constup-foss/php-attributes without Composer

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

= constUP PHP Attributes :toc: :toclevels: 5

image:https://img.shields.io/badge/PHP-8.5-blue[Static Badge] image:https://img.shields.io/badge/License-MIT-green[Static Badge] image:https://img.shields.io/packagist/dt/constup-foss/php-attributes[Packagist Downloads]

== Description

A collection of PHP attributes and their processors. Includes reusable common processors that can be used on any attribute, even your own.

The main idea behind several attributes in this library is to leverage First Class Callables in static expressions (link:https://wiki.php.net/rfc/fcc_in_const_expr[PHP RFC Wiki]) introduced in PHP 8.5. FCCs allow you to have attributes whose arguments are not static, but rather resolved during runtime. This removes the clutter of having multiple distinct attributes to cover the same base functionality, for example, validation.

Of course, since this approach has its benefits and downsides, this library contains classic attributes with static arguments as well. You are free to use the ones that are the best fit for your use case.

=== Libraries that use constup-foss/php-attributes

== Supporting development

If you like this library or find it useful, consider buying me a nice cup of coffee. Coffee fuels open source.

image:doc/bmac.png[width=197]

link:https://www.buymeacoffee.com/puEW3HvWvP[image:https://cdn.buymeacoffee.com/buttons/v2/default-green.png[width=200]]

== Installation

[source]

composer require constup-foss/php-attributes

== Available attributes

[source, php]

[DoNotSerialize]

[TransformPropertyName(\Closure $transformer)]

[TransformPropertyValue(\Closure $transformer)]

[ValidateProperty(\Closure $validator)]


More detailed list of available attributes, their processors and links to individual documentation pages is available here: link:doc/available_attributes.adoc[Available attributes]

== Common attribute processors

Common attribute processors implemented in this library can be used directly to process attributes of a specific structure (the number and type of arguments that an Attribute has). Many concrete Attribute processors in this library are just extensions of the common ones.

[IMPORTANT]

Common attribute processors can be used on any attribute that satisfies supported attribute structure. They can be used on attributes that are not part of this library.

You are free to use them on third-party attributes or even on your own attributes.

The list of available common attribute processors is avaliable on a separate page: link:doc/common_attribute_processors.adoc[Common attribute processors].

== License

MIT License

== Supporting development

If you like this library or find it useful, consider buying me a nice cup of coffee. Coffee fuels open source.

image:doc/bmac.png[width=197]

link:https://www.buymeacoffee.com/puEW3HvWvP[image:https://cdn.buymeacoffee.com/buttons/v2/default-green.png[width=200]]


All versions of php-attributes with dependencies

PHP Build Version
Package Version
Requires php Version >=8.5
constup-foss/php-exerr Version ^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 constup-foss/php-attributes contains the following files

Loading the files please wait ...