Download the PHP package makg/symfony-utils-bundle without Composer

On this page you can find all versions of the php package makg/symfony-utils-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 symfony-utils-bundle

Symfony Utils Bundle

Build Status

Bundle for Symfony 4.x with various useful stuff. It includes:

Author: Maciej Gierej - http://maciej.gierej.pl

Installation

@CsrfTokenRequired annotation

Usage:

You can i.e. pass the CSRF token in the URL in Twig:

Annotation param Required Default Description
id Yes - ID of generated CSRF token
header No X-CSRF-Token HTTP Header name from which the token will be read. If the token is not found in the header, then "param" is checked in request's parameters bag.
param No token Name of request's parameter containing CSRF token

Query Filter

Query Filter provided in this bundle allows handling search query strings like symfony bundle site:github.com in-title:API. Each filter (site, in-title) can be handled by user's custom filter implementing FilterInterface.

In the example search query string above, the input will split into:

This bundle provides one universal filter - IdFilter. You can take a look at it in Doctrine/QueryFilter/Filter/IdFilter.php to get an idea how to implement your own filters.

Usage:

You can inject QueryFilter service using autowiring.

Twig Functions

path_js

This function renders path from Router without resolved parameters, even if they are required. Useful when you want to pass application's route to JavaScript functions and substitute parameters on client side.

Usage:

Validators

UniqueEntityField

It checks value uniqueness against the specified field in Doctrine entity. Usage:

Doctrine Types

Money

Embeddable type using \Money\Money class from moneyphp/money package. In order to use it, you need to setup mappings in your Doctrine config (typically in /config/packages/doctrine.yaml):

It results in two columns: price_amount, price_currency.

Currency (money_currency)

This type is registered automatically. It stores currency code and transforms it into \Money\Currency object.

Form types

MoneyPhpType

This form type consists of two fields: amount and currency.


All versions of symfony-utils-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
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 makg/symfony-utils-bundle contains the following files

Loading the files please wait ....