Download the PHP package tenseg/barnacle without Composer

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

Barnacle

Barnacle is a Statamic addon that creates an extensible toolbar on the front end of your site. Barnacle builds a toolbar using regular Statamic templates/views, which is super flexible. Barnacle is primarily intended as a developer tool, though it can be helpful for site editors and authors as well.

Features

Installation

Barnacle can be installed via Composer:

Then add the {{ barnacle }} tag to your Antlers layout just before you closing </body> tag.

Barnacle can direct you to the source code for entries and templates if you add an entry to your .env file letting it know what file scheme to use to open files from your web browser. For example, add the following to .env to facilitate editing source files with VS Code on macOS:

Use

Barnacle attaches a toolbar menu to the upper right corner of your website. You will only see this menu if one of the following is true:

  1. Your site is in debug mode (you have set APP_DEBUG=true in your .env file, for example);
  2. You are logged in to your site;
  3. You have logged in to your site in the past week on the same browser.

That third option is facilitated by a cookie Barnacle leaves in your browser when you log in. This option can be disabled in role permissions or by setting the BARNACLE_COOKIE= to nothing in your .env file. If you want to customize the name of the cookie Barnacle uses for this purpose, just put a value into the .env file such as BARNACLE_COOKIE=mysillycookiename.

You can also choose to have Barnacle always appear by setting BARNACLE_ALWAYS=true in your .env file.

Each user can set their own preferences in the Statamic control panel to hide Barnacle components they don't wish to see. Users can also click on the "pin" icon to hide Barnacle when it is distracting. Hovering over the space where Barnacle usually appears will make it visible even when hidden.

Customization

If you wish to create your own custom components, then first publish Barnacle's templates:

This will put the default templates into the resources/views/vendor/barnacle directory of your Statamic project.

Custom components are simply template files, like other Statamic views. Given the power of Antlers, which can even include PHP code, the potential for custom components is really endless. See the new.antlers.html component for a much more involved example.

Once you have defined a new component, you can tell Barnacle to include it by adding a JSON array of custom components to your .env file. For example, you would include a component in the template example.antlers.html with the following in .env:

The key matches the template, and the value will be used to describe the component in Statamic permissions and preferences.

You can also publish Barnacle's configuration if you wish:

Changes made to the config/barnacle.php file will be propagated by git to other instances of the site, while those in the .env file typically only apply to that single instance.

Credits

This addon was inspired by both the Statamic Toolbar addon and the Admin Bar addon. Both of those are wonderful and worthy of you consideration before you decide to adopt Barnacle. They each can do things that Barnacle does not do.

The icons are from Iconoir at Iconify by Luca Burgio and made available with an MIT license.

Barnacle is made available under an open source Tenseg LLC.


All versions of barnacle with dependencies

PHP Build Version
Package Version
Requires statamic/cms Version ^5.0 || ^6.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 tenseg/barnacle contains the following files

Loading the files please wait ...