Download the PHP package ysugimoto/flame without Composer

On this page you can find all versions of the php package ysugimoto/flame. 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 flame

flame

flame is the frontend integration library for CodeIgniter4.

Collaborate with vite frontend

This library loads manifest file which is generated via vite with flame-vite-plugin. You can specify loading asset files like <script> and <link> by helper function.

For the generating manifest file, see flame-vite-plugin documenration.

Installation

You can install via packagist.

And then run the CodeIgniter's command.

The above command generated package configuration in your app/Config/Flame.php. And also you need to load the flame helper. Modify configiration of your autoloader.

Usage

[!NOTE] You need to genearte manifest file before.

After the setup, you can use the flame helper function in your view files.

We suggest to put this hepler calls inside the <head> tag or before the </body> tag.

Preload

To improve script/css loading performance, you can configrure the preload. To enable preloading, you can also use flame_preload helper function.

This function displays <link rel="preload" ... /> tag so need to be called inside the <head> tag.

Alias

On developing backend, you might not consider about what asset file sould be loaded on view file. Then you can specify asset name as alias like:

On the above case, the @main alias will be resolved in the manifest file so you don't take care of the asset filename. To use the alias loading, see Alias section in the vite plugin.

DevServer / HMR

vite can runs dev server with HMR and the flame also can synchronize with it. For example, vite command will start dev server like http://localhost:5173, and also flame-vite-plugin generates manifest file as dev mode. The flame helper function automatically recognize the manifest is dev mode or not, and generates <script> tags with HMR mode. It is useful for developing frontend view with CodeIgniter. When you change the frontend file, the view that is displayed by CodeIgniter will reload automatically.

Manifest Loading

Currently we support a way of loading manifest file via:

The default setting is Local FileSystem but sometimes your frontend will be served via Cloud Storage service like AWS S3, Google Cloud Storage for some Single-Page-Application.

On this case, you can use HTTP Request manifest loading by changind configuration file.

See phpdocs in the configiuration file in detail.

Contribution

Author

Yoshiaki Sugimoto [email protected]

License

MIT


All versions of flame 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 ysugimoto/flame contains the following files

Loading the files please wait ....