Download the PHP package devpontes/view without Composer

On this page you can find all versions of the php package devpontes/view. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package view

View by @Devpontes

Maintainer Source Code PHP from Packagist Latest Version Build Quality Score Total Downloads

About View componet

View is a simple component for rendering templates with native PHP.

View é um componente simples para renderização de templates com PHP nativo.

Highlights

Installation

View is available via Composer:

or run

Documentation

To use View you need to define the path to the views folder.
  1. Para utilizar o View você precisa definir o caminho para a pasta de views.
At initialization, we need to pass the path to the views folder and the extension to the template file type as an argument.
  1. Na inicialização precisamos passar como argumento o caminho para a pasta de views e a extensão para o tipo de arquivo de templates.
Use modifier methods to dynamically include parts of the template. Then, use the render method passing an array of data and the selected view. You can use either the slash (/) or the period (.) as a directory separator. For more details, see the example folder in the component directory.
  1. Use os métodos modificadores para incluir dinamicamente partes do template. Em seguida, utilize o método render passando um array de dados e a view selecionada. Você pode usar tanto a barra (/), quanto o ponto(.), como separador de diretórios. Para mais detalhes, veja a pasta de exemplo no diretório do componente.

Basic usage

In the template

Use the insert method to insert a component directly into the template

Call addAssets by injecting an Assets object to manipulate JS and CSS assets through the makeScript and makeStyle methods. You can omit addAssets if the assets are inserted in the template itself, see
  1. Chame addAssets injetando um objeto de Assets para manipular os ativos de JS e CSS através dos métodos makeScript e makeStyle. Você pode omitir o addAssets caso os ativos sejam inseridos no próprio template, veja:

Add assets

The default path for styles and scripts folders (css and js). Use modifier methods to change the pattern

Add CSS in <head>

Add JS in <body>

Credits

License

The MIT License (MIT).


All versions of view with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package devpontes/view contains the following files

Loading the files please wait ....