Download the PHP package arian-taylor/pw-components-php without Composer

On this page you can find all versions of the php package arian-taylor/pw-components-php. 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 pw-components-php

pw-components-php-dev

Requirements

Installation

Utilisation

Recaptcha

Importation de la classe

Instanciation

Exemple d’utilisation

On peut utiliser partout la méthode isValidReCaptcha avec recaptcha_token en paramètre.
Si on veut récupérer le data retourné par reCAPTCHA en cas d’erreur ou du succès, on peut l’avoir avec recaptchaData

RateLimiter

Importation de la classe

Instanciation

Exemple d’utilisation

DataTable

Importation de la classe

Configuration

Modification du fichier services.yaml pour autoriser le autowire de l’apiDataTable autowire: true

Modification du fichier bundle.php

Exemple d’utilisation

Params

Importation de la classe

Instanciation

Exemple d’utilisation

Export Excel

Importation de la classe

Configuration

Modification du fichier services.yaml pour autoriser le autowire de l’apiDataTable autowire: true

Exemple d’utilisation (simple onglet)

1- Création d’un service d’export exemple : UserExportExcelService.php

2- Création du contrôleur exemple : ExportController.php

Exemple d’utilisation (multiple onglet)

1- Création d’un service d’export exemple : UserExportExcelService.php

Export Pdf

Importation de la classe

Configuration

Modification du fichier services.yaml pour autoriser le autowire de l’apiDataTable autowire: true

Exemple d’utilisation

1- Création d’un service d’export exemple : UserExportPdfService.php

2- Création du template exemple : template\pdf\template.html.twig

3- Création de la fonction Twig renderPdfContent Dans le fichier src\Twig\AppExtension.php

4- Création du contenu html exemple : templates\pdf\content.html.twig

5- Création du contrôleur exemple : ExportController.php

Generator

Configuration

Modification du fichier services.yaml pour autoriser le autowire de Pw\Command\GeneratorCommand autowire: true

Exemple d'utilisation

Pour créer une page front
Pour créer un API front
Pour créer un service front

Syntaxe

Autres utilisations avec les options

Pour créer une page front avec une méthode index
Pour créer un API front avec une méthode index
Pour créer un service front avec les méthodes save, load, list
Pour avoir de l'aide
Utilisation de la commande en mode interactif (type ='page ou service ou api')

FileValidator

Importation de la classe

Instanciation

Exemple d’utilisation

Utilisation avec les définitions des extensions, des types et de la taille des fichiers autorisés
Utilisation de verifier le type de fichier comme image en appelant juste la méthode isImage.
Quelques méthodes sur la validation de fichier.

All versions of pw-components-php with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
dompdf/dompdf Version ^2.0
phpoffice/phpspreadsheet Version ^1.28
ext-ctype Version *
ext-iconv Version *
symfony/console Version 6.1.*
symfony/dotenv Version 6.1.*
symfony/flex Version ^2
symfony/framework-bundle Version 6.1.*
symfony/runtime Version 6.1.*
symfony/yaml Version 6.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 arian-taylor/pw-components-php contains the following files

Loading the files please wait ....