Download the PHP package packagefactory/atomicfusion-constants without Composer

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

PackageFactory.AtomicFusion.Constants

Constants as a language construct for fusion

Warning!

This is experimental technology. Constants are currently not part of the fusion language. You can however install this package to make this functionality available to your project.

Our goal is to make this part of the fusion core in the future. It is very likely though, that Syntax, Scoping and implementation details will deviate from what is presented here.

Installation

PackageFactory.AtomicFusion.Constants is available via packagist. You can install this package with composer:

We use semantic-versioning so every breaking change will increase the major-version number.

Usage

This package introduces the const: declaration, that let's you define constants within a fusion file. With const::* you can use the defined constant anywhere in your fusion file:

Constants are scoped to the file they are defined in and cannot be overwritten or redeclared within that file.

Constant names need to be ALL_UPPERCASE and can contain letters, numbers and underscores. A name needs to start with either a letter or an underscore.

Magic Constants

__FILE__

Similar to PHP's __FILE__ constant, you can use const::__FILE__ to reference the location of the current fusion file.

__DIR__

Similar to PHP's __DIR__ constant, you can use const::__DIR__ to reference the directory of the current fusion file.

License

see LICENSE file


All versions of atomicfusion-constants with dependencies

PHP Build Version
Package Version
Requires neos/fusion Version *
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 packagefactory/atomicfusion-constants contains the following files

Loading the files please wait ....