1. Go to this page and download the library: Download miraafaq/askme library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
miraafaq / askme example snippets
AskMe\AskForm;
use AskMe\Field\TextField;
use AskMe\Field\EmailField;
use AskMe\Field\PasswordField;
$formBuilder = new AskForm('submit.php');
$formBuilder->addField(new TextField('name'));
$formBuilder->addField(new EmailField('email'));
$formBuilder->addField(new PasswordField('password'));
$formCssHTML = $formBuilder->generateCss();
$formHTML = $formBuilder->generateForm();
echo $formCssHTML;
echo $formHTML;
bash
composer dump-autoload
bash
php vendor/bin/phpunit
bash
PS C:\Users\user\Downloads\PHPTESTING\c> php vendor/bin/phpunit
PHPUnit 10.5.13 by Sebastian Bergmann and contributors.
Runtime: PHP 8.1.6
Configuration: C:\Users\user\Downloads\PHPTESTING\c\phpunit.xml
................. 17 / 17 (100%)
Time: 00:00.060, Memory: 8.00 MB
OK (17 tests, 22 assertions)
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.