Download the PHP
package thelia/frontoffice-modern-template without Composer
On this page you can find all versions of the php package
thelia/frontoffice-modern-template. 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 frontoffice-modern-template
⚠ This is the repository of Thelia default frontoffice template. All the pull requests on this repo will be ignored.
If you want to create a project, please take a look at thelia/thelia-project
If you want to contribute to Thelia, please take a look at thelia/thelia
About
This Thelia template is based on Symfony Encore, it uses Smarty (Thelia default templating engine) for static content and React for managing dynamic components (eg:cart).
Styling is done with Tailwind and PostCSS, but can be overrided or switched, to use any other css preprocessor/ css framework.
This template is based around pages templates (located at the root of this directory) and a components system (in the components directory).
Components system
Component should be reusable and the more agnostic possible to allow them to be composed freely.
Files relative to the component (html, css, js, images, ...) should all be inside the component directory to keep them organized and easy to move around.
Retrieving compiled assets in pages
Symfony Encore use entries to identify the different JS bundles composing the template, those entries can be modified in the webpack.config.js file.
This pattern allow your js code to be split and used only on the relevant pages.
You declare them like:
and you use them like:
⚠️ layout.tpl ⚠️ (this is the main JS bundle, which is used for every pages of the website)
product.html (note the use of the append keyword in the smarty block, allowing us to keep the main bundle instead of replacing it)
Image & other assets
You can use the smarty function {encore_manifest_file file="key/of/your/asset/in/the/manifest"} to retrieve any assets compiled by Symfony Encore, the manifest.json file can be found inside the dist directory
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 thelia/frontoffice-modern-template contains the following files
Loading the files please wait ....
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.