Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

phptpl

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

phptpl

PHP Template Engine for front-end developer

  • 1.0.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

phptpl

Static HTML template engine for template developer

Install

Make sure you have PHP installed in your $PATH first. Then run:

npm install -g phptpl

Start a project

phptpl create example

Use your favorite PHP web server to preview.

Project Structure

▾ dist/
  ▸ css/
  ▸ js/
    index.html
▾ src/
  ▸ css/
  ▸ js/
    footer.inc.php
    header.inc.php
    index.php
  .tpl

Rules:

  • Source files in src directory
  • Generated HTML files in dist directory
  • JavaScript and CSS files are copied as is.
  • Source files with .inc.php in filename won't be generated to html.
  • You can use all the php helpers function to help you build the template (ex. for loop, if else conditions, include_once, and more...)

Build the html files:

Navigate to project directory and run:

phptpl build

Keywords

FAQs

Package last updated on 07 Jan 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc