Create your modern and stable web application in a strict, simplified and organized environment.
Do yourself a favor : use Hamtaro
Ctrl means inside your Hamtaro application, it helps to identify the namespace and the filepath of your controller.
AbstractAjaxRequestis extended by your ajax requests.
AbstractFormis extended by your forms.
AbstractModalis extended by your modals.
AbstractPageis extended by your pages.
All controllers allowed to be loaded must be defined in src/main.php with the
Component means graphic item inside your Hamtaro application.
AbstractPageextending AbstractComponent, create your own component type doing the same.
A component is composed of 4 files and identified with its Ctrl.
Ctrl.sass - Component's stylesheet
Ctrl.twig - Component's view. Pug support is coming.
Hamtaro identifies your components in the DOM with these types of selectors :
Using composer scripts, improve your workflow and save considerable time during development.
CreateAjaxRequestto create a new ajax request.
CreateComponentto create a new component.
CreateFormto create a new form.
CreateModalto create a new modal.
CreatePageto create a new page.
Use hamtaro.js for your front-end development.
The default webpack configuration supporting the following assets :
npm run assetsBuild your assets public/main.min.js and public/main.min.css.
npm run assets:devYour assets are monitored and built dynamically, just write bars and reload your browser to see the changes.
Your work environment is already ready.
composer create-project cejobelo/hamtaro-starter my_project && cd my_project && composer install && npm install