Download the PHP package ameos/ameos_form without Composer
On this page you can find all versions of the php package ameos/ameos_form. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download ameos/ameos_form
More information about ameos/ameos_form
Files in ameos/ameos_form
Download ameos/ameos_form
More information about ameos/ameos_form
Files in ameos/ameos_form
Vendor ameos
Package ameos_form
Short Description This extension provides a form api for TYPO3 extension based on extbase and fluid with validation, list, search form, etc.
License GPL-3.0-or-later
Homepage https://github.com/ameos/ameos_form
Package ameos_form
Short Description This extension provides a form api for TYPO3 extension based on extbase and fluid with validation, list, search form, etc.
License GPL-3.0-or-later
Homepage https://github.com/ameos/ameos_form
Please rate this library. Is it a good library?
Informations about the package ameos_form
Ameos Form (ameos_form)
Form api for extbase and TYPO3
Example
use Ameos\AmeosForm\Service\FormService;
use Ameos\Test\Domain\Model\Movie;
use Ameos\Test\Domain\Repository\MovieRepository;
use Psr\Http\Message\ResponseInterface;
use TYPO3\CMS\Extbase\Mvc\Controller\ActionController;
class TestController extends ActionController
{
public function __construct(private FormService $formService, private MovieRepository $movieRepository)
{
}
public function addMovieAction(): ResponseInterface
{
$movie = new Movie();
$form = $this->formService->create('tx_test_testameosform', $movie);
$form->add('title', 'text')->add('year', 'text')->add('submit', 'submit');
if ($form->isSubmitted()) {
$form
->addConstraint('title', 'required', 'Title is required')
->addConstraint('year', 'required', 'Year is required');
if ($form->isValid()) {
$this->movieRepository->add($movie);
$this->addFlashMessage('Movie added');
$this->redirect('index');
}
}
$this->view->assign('form', $form);
return $this->htmlResponse();
}
}
Documentation
You can find all the documentation on the typo3 extension repository
All versions of ameos_form with dependencies
PHP Build Version
Package Version
Requires
typo3/cms-core Version
^13
typo3/cms-fluid Version ^13
typo3/cms-extbase Version ^13
php Version >=8.0.0
typo3/cms-fluid Version ^13
typo3/cms-extbase Version ^13
php Version >=8.0.0
The package ameos/ameos_form contains the following files
Loading the files please wait ....