2017 © Pedro PelĂĄez
 

project phoponent

Framework PHP permétant de créer des composant HTML en PHP. chaque composant est un pattern MVC et sa vue peux comptenir d'autres composants.

image

nicolas/phoponent

Framework PHP permétant de créer des composant HTML en PHP. chaque composant est un pattern MVC et sa vue peux comptenir d'autres composants.

  • Tuesday, July 17, 2018
  • by nicolachoquet06250
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

© 2018 - Phoponent

LICENCE GNU GPL

Sbuild Scrutinizer Code intelligence Scrutinizer Code Quality, (*1)

PHP framework for creating HTML components in PHP. each component is an MVC pattern and its view can contain other components., (*2)

Installation

Clone Phoponent git repository:, (*3)

    git clone https://github.com/nicolachoquet06250/phoponent

Usage

Use the available commands., (*4)

Several commands are available:, (*5)

  • php Phoponent
    • help command
  • php Phoponent make:debug
    • enable and disable debug mode.
  • ...etc

Create html page.

For create an Html page, create Html file in app directory., (*6)

For view this page, go to your browser and tape http(s)://your_domain.com/?p=index.html, (*7)

Create php component

For create a php component, simply tape this command in your terminal:, (*8)

php Phoponent make:component

this command takes 2 parameters of which 1 obligatory: - tag : this is the tag name of your component. - type : this is the type of your component ( core or custom ) - => core is default value., (*9)

this command will create for you: - one demo model: - processes datas - one demo PHP view with its associate PHP class: - processes view - one demo controller: - return render, (*10)

Thereafter, update files for get the expected result., (*11)

For your component to be taken into account, it must be written on the html page., (*12)

You can write it in 3 different ways without impacting its understanding by the framework: - 1st way:, (*13)

<My_component parameter="value"></My_component>
  • 2nd way:
<My_component parameter="value">
    text to write in the 'value' variable
</My_component>
  • 3rd way:
<My_component parameter="value"/>

For externals libs, include them in external_libs directory, (*14)

If you add external_libraries or class and you would like add at dependency in component: - go to phoponent/Autoload.php file and add your file to self::$dependencies[] variable. - class name is key and value is class ( self::$dependencies['ma_class'] = \namespace\ma_class::class; ), (*15)

The Versions

17/07 2018

dev-master

9999999-dev

Framework PHP permétant de créer des composant HTML en PHP. chaque composant est un pattern MVC et sa vue peux comptenir d'autres composants.

  Sources   Download

GPL-3.0-only

by Nicolas Choquet