定制 cejobelo/hamtaro-starter 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

cejobelo/hamtaro-starter

Composer 安装命令:

composer create-project cejobelo/hamtaro-starter

包简介

Start your Hamtaro application with hamtaro-starter.

README 文档

README

About

Hamtaro is the new web framework for front-end / back-end development using Php and Javascript.
Create your modern and stable web application in a strict, simplified and organized environment.

Do yourself a favor : use Hamtaro 🐹

Technologies

Php | Javascript | Composer | Npm | Node.js | Webpack | Babel | Sass | Twig | Bootstrap | jQuery | Json

Controllers

Ctrl means controller identifier inside your Hamtaro application, it helps to identify the namespace and the filepath of your controller.

All controllers allowed to be loaded must be defined in src/main.php with the controllers property.

Components

Component means graphic item inside your Hamtaro application.

AbstractForm, AbstractModal and AbstractPage extending AbstractComponent, create your own component type doing the same.

A component is composed of 4 files and identified with its Ctrl.

Hamtaro identifies your components in the DOM with these types of selectors :

  • .hamtaro-component[data-ctrl="Header"]
  • .hamtaro-form[data-ctrl="Identification/Reset"]
  • .hamtaro-modal[data-ctrl="Newsletter"]
  • .hamtaro-page[data-ctrl="About"]

Commands

Using composer scripts, improve your workflow and save considerable time during development.

{
    "scripts": {
        "ajax": "Hamtaro\\Command\\CreateAjaxRequest::run",
        "component": "Hamtaro\\Command\\CreateComponent::run",
        "form": "Hamtaro\\Command\\CreateForm::run",
        "modal": "Hamtaro\\Command\\CreateModal::run",
        "page": "Hamtaro\\Command\\CreatePage::run",
        "event": "Hamtaro\\Command\\CreateEvent::run"
    }
}

For example, composer run form Login create your form component to src/Controller/Form/Login.

Front-end development

Use hamtaro.js for your front-end development.

The default webpack configuration supporting the following assets : .js|.sass|.scss|.css

  • npm run assets Build your assets public/main.min.js and public/main.min.css.

  • npm run assets:dev Your assets are monitored and built dynamically, just write bars and reload your browser to see the changes.

Getting started

Your work environment is already ready.

composer create-project cejobelo/hamtaro-starter my_project && cd my_project && composer install && npm install

Enjoy 🐹

统计信息

  • 总下载量: 20
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-05-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固