Download the PHP package georgebuilds/livewire-molecule without Composer

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

Livewire Molecule

A Laravel Livewire component for 3D molecular visualization powered by 3DMol.js

Features

Requirements

Installation

Optionally publish the config file:

Usage

Basic Usage

Display Modes

Visualization Styles

Customizing Appearance

Advanced 3Dmol Options

Pass additional 3Dmol.js options through the Livewire wrapper:

Reactive Updates

The component reacts to property changes:

Configuration

Input Format Priority

When multiple identifiers are provided, the component uses this priority:

  1. sdf (raw data, no API call needed)
  2. pdb (fetches from RCSB PDB)
  3. pubchem-cid (fetches from PubChem)
  4. smiles (converts via NCI CACTUS)
  5. inchi (converts via NCI CACTUS)

External APIs Used

This package relies on these free public APIs for structure retrieval and conversion:

API Purpose Rate Limits
RCSB PDB Fetch protein structures Generous
PubChem Fetch compound structures 5 req/sec
NCI CACTUS SMILES/InChI โ†’ 3D conversion Best effort

For production use with high traffic, consider implementing your own conversion service or caching aggressively.

Troubleshooting

"Failed to convert SMILES to 3D structure"

Molecule appears blank

"Cannot connect to [API]" or blank molecule in production

This package requires outbound HTTP access to external APIs for SMILES/InChI conversion and PubChem/PDB data fetching.

Laravel Vapor: Enable outbound HTTP in your vapor.yml:

Other platforms: Ensure your server/firewall allows outbound HTTPS to:

Workaround: Use raw SDF/PDB data instead of SMILES/PubChem CIDs to avoid external API calls:

Upgrade Guide (v1 โ†’ v2)

v2 renames the publishable config file and config key.

  1. Republish config:

  2. Update config usage:
    • File moved from config/molecule.php to config/livewire-molecule.php
    • Config key changed from molecule to livewire-molecule

If you referenced config values in your app, update:

Local Development

To preview the component in a real browser while working on the package:

Then open http://localhost:8000 to see a live demo page with multiple molecule examples rendered using the actual component.

Testing

Acknowledgments

License

MIT License. See LICENSE for details.

This package includes 3DMol.js which is licensed under BSD-3-Clause.


All versions of livewire-molecule with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^11.0|^12.0|^13.0
livewire/livewire Version ^4.1
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 georgebuilds/livewire-molecule contains the following files

Loading the files please wait ...