Download the PHP package ccmbenchmark/ting_bundle without Composer

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

Installation

  1. Require Ting Bundle with

  2. Load Bundles in AppKernel.php

Table of contents

Configuration

Main configuration

About public properties

Public properties can be used in your entities, however for PHP < 8.4, you should declare a setter to notify the property change.

PHP < 8.4:

For PHP >= 8.4, you may use a property hook instead. This hook will be bypassed by Ting for hydratation.

A note about uninitialized typed properties

Declare metadata with attributes

Attributes are provided to declare an entity. Relevant attributes are available in CCMBenchmark\TingBundle\Schema.

Table

Column

Full example

Using Ting as a User Provider

User providers (re)load users from a storage based on a "user identifier" (extract from symfony documentation).

Ting can be used as a User Provider, it's automatically registered by the bundle as the provider ting. To do so, update your security configuration.

Your entity will have to implements the following interfaces: Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface (for password authenticated users) and Symfony\Component\Security\Core\User\UserInterface (common to all kind of users). It needs to implement __serialize too.

Declare a Unique constraint in a table

If you use the component symfony/validator, you may need to ensure that a value (or a combination of them) is unique in your table.

You can use the Constraint CCMBenchmark\TingBundle\Validator\Constraints\UniqueEntity to do so. In can be used as an annotation, or as an attribute.

Example:

With that example you can assert, when creating a new user, that the email address is unique:

Using Ting as a Value Resolver

This bundle automatically registers a Value Resolver.

You can automatically map request parameters to entities:

  1. Declare a parameter in your route (i.e: /api/users/{userId}), using the property in your entity you'll use to fetch data (in this case: userId)
  2. Map it to your action parameters:
    1. Add it to your signature: public function getUser(User $user)
    2. Update the route to do the mapping: /api/users/{userId:user} (in this case: the User having userId matching the request will be fetched and injected to your action with the argument $user)

For more advanced use cases, you can leverage:

Example:


All versions of ting_bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ccmbenchmark/ting Version ^3.11
doctrine/cache Version ^1.10
symfony/validator Version ^4.4 || ^5.0 || ^6.0 || ^7.0
symfony/http-kernel Version ^4.4 || ^5.0 || ^6.0 || ^7.0
symfony/dependency-injection Version ^4.4 || ^5.0 || ^6.0 || ^7.0
symfony/config Version ^4.4 || ^5.0 || ^6.0 || ^7.0
symfony/stopwatch Version ^4.4 || ^5.0 || ^6.0 || ^7.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 ccmbenchmark/ting_bundle contains the following files

Loading the files please wait ....