Download the PHP package nexocentric/silkworm without Composer

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

(ml)Silkworm Build Status

日本語はこちらです。
中文说明见。

(ml)Silkworm, or just Silkworm, is a markup language library for PHP to aid in the creation of HTML and XML documents. Silkworm acts as an abstraction layer allowing you to focus solely on PHP when you're programming eliminating the need to worry about properly formatting your HTML \t\t<tags>\n manually.

Silkworm generates nicely carriaged, returned and indented HTML or XML from your PHP files. The library is dynamic and can be used in a modular fashion allowing you to break up the document creation process into logical chunks throughout your program.

History

Silkworm was built from the ground up and has been throughly tested using PhpUnit.

Changelog

Version Name Changes
1.00 ao initial release
1.01 beige fixed code formatting
1.02 cyan updated English readme
1.03 daidai drafted Japanese readme
1.04 emerald completed Japanese readme
1.05 fen drafted Chinese readme
1.06 gin fixed clipping issues, added new tests
1.07 hui completed Chinese readme, removed work files
2.00 jade added some new functionality as listed below
1) htmlspecialchars escaping
2) ability to define extra boolean attributes
3) ability to define extra self-closing tags
4) ability to adjust last minute indentation
for each silkworm before outputting text
5) padding to integer defined array keys for
improved and more reliable sorting
changelog on English readme file, added
additional tests, added LICENSE file

Installation and Configuration

Installation

Silkworm has no dependencies and can be installed the following ways:

  1. GitHub Copy and Include

    • Copy the library from GitHub
    • Move Silkworm.php to the directory of your choice
    • Include Silkworm.php in the file that you'll be using it in
  2. Via Composer
    • Add the following to your composer requirements

Instantiate $html = new Silkworm(); and go.

Testing

All tests for Silkworm have been conducted with PhpUnit. The tests are contained in the tests folder, so feel free to run them to make sure your version is working.

Configuration

Silkworm doesn't require any configuration before use. However, there are a number of settings that you can use as demonstrated below.

Usage

There are a number of ways to use Silkworm.

Basic

Snippet Saving

You can make and save snippets as follows.

Setup

If you use the (string)$html as a string, all of the snippets will automatically be joined in numerical then alphabetical order.

Output

You can also choose which snippet you would like to use.

If you need the snippet to include header information like <!DOCTYPE>, you can wrap the string with the following function.

Advanced

For advanced usage please see the examples folder. The examples are set up and ready for display. You should be able to access the files from your browser and see how they display there. Feel free to tinker with the examples to test out the system.

Contact

General

You can contact me via:

Bugs

If you find any bugs while using Silkworm, I'd like to know so that I can fix them as soon as possible.

Please submit the issue via GitHub and I'll contact you for more information.

Contributing

Your contributions are greatly appreciated!

If you would like to contribute, please:

  1. Fork the library on GitHub
  2. Make any changes that you think will better the project
  3. Make tests for the changes that you've made
  4. Make a pull request
  5. I'll message you about making any needed documentation changes (so that you don't make documentation changes before you know if the pull request can be accepted or not)

I'll go through the request to make sure that everything is okay and usable.*

[*] I would like to apologize in advance for not being able to accept all pull requests.

Feedback

I would like to hear feedback, bad and good. Anything that promotes discussion is appreciated.

Acknowledgements

I would like to thank all of the people who supported me through out development for all of their help and advice.

Copyright

See LICENSE file for more information.


All versions of silkworm with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.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 nexocentric/silkworm contains the following files

Loading the files please wait ....