Download the PHP package dolismartmaker/dolinews-client without Composer

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

DoliNews client

Command line client to submit the announcements and project sheets of a Dolibarr module to DoliNews. PHP alone is enough: the client has no Composer dependency.

This repository is a read-only copy of the client/ directory of dolismartmaker/dolinews. Issues and pull requests go there.

Installation

In the module, as a development dependency:

In a CI job that should not install the whole vendor/ of the module:

Commands

Each PHP command prints its full usage with --help.

A token grants the right to submit, never to publish: whatever the client sends lands in the review queue.

Featured image of an announcement

image: in the header of an announcement names the image the feed card, the sharing card and the feeds show for it, by a path relative to the file; image_alt: gives its alternative text. It is reviewed with the article. Without it, the first image of the body is shown. A translation shows the image of its source and names none. A correction (--revise) may change it, and may bring new images in its body: both appear once the review has applied the correction.

Project sheet images

The header of a sheet file may carry a logo and a screenshot gallery, paths relative to the sheet file, one gallery line per image, the caption (255 characters at most) after |:

--check verifies each file offline: present, readable, a bitmap image (SVG is refused), caption within its limit. An image is recognised by the sha256 of the file itself: one already on the sheet is not uploaded again, so the command can be run again without duplicates, and --dry-run lists what would be sent. The file is the truth for the gallery: an image on the sheet that the file no longer names, removed or replaced by a regenerated screenshot, is taken off the sheet after the new ones are attached, and --dry-run lists it first. The instance bounds the gallery, ten images by default: when it is full, those images are taken off one by one as room is needed. A file naming more images than the bound is refused.

A Dolibarr screenshot almost always carries real data (third parties, amounts, addresses), and the service publishes it as sent: publish screenshots taken on demonstration data only.

Environment

CI examples

examples/ci-gitlab.yml and examples/ci-github.yml announce a release when it is tagged; examples/annonce.md is a complete announcement file.

License

AGPL-3.0-or-later, see LICENSE.


All versions of dolinews-client with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-curl Version *
ext-json Version *
ext-mbstring 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 dolismartmaker/dolinews-client contains the following files

Loading the files please wait ...