Download the PHP package webee-online/g-cms without Composer

On this page you can find all versions of the php package webee-online/g-cms. 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 g-cms

gCMS - Git-based CMS

As the header described - this is CMS where the content you would like to serve is stored under the Git repository.

Idea behind

For a while, I was thinking about paying back to the IT world. Not only for offering me the limitless source of knowledge called the Internet. But foremost to say "thank you" to all great people that contribute to it. This is why I wanted to start a blog/page (call it however you want). The place where I can share what I have learned with others. Mainly with new in the IT business. I did few rounds on this topic. First with WordPress (a great thing, used it in many projects). Then with static pages. As you can see I jumped back and forth looking for a solution that will suit me. Face the truth - I'm a lazy bastard. But it always was too complicated, too consuming, or too boring to use, or lacking necessary functionalities. And if everything was ok - I found it was too expensive (a big hello to Atlassian guys ;)).

One day - exactly 7/11/2020 (for those from USA d/m/yyyy) - I figured out that publishing content to the web is in its fundamentals nothing else like doing a new feature in the code. So why not create content in favorite editor/IDE and when it is finished commit it to the repository?

This was this big moment - use Git as content storage.

How does it work?

gCMS is a tool that reads selected input folder for particular file types (e.g.: .page.md, .category.md, etc.). For each of them, it will create a static HTML (or other) page according to defined templates. Such static files can be uploaded to any server that can host HTML files (a simple Apache host will do the trick or cloud storage like S3).

Before I jump into describing it, you need to know my assumptions.

Assumptions

The last one can be triggered by the Cron job or by a webhook triggered from your repository. Starting now, the process of building static pages will be called "Build".

How to start guide

Follow this guide to start with your first simple blog based on gCMS.

Step 1: Preparation

Step 2: Configuration

Create configuration file "blog/config.test.json".

And insert the following JSON into it:

Step 3a: Content development

Create new file and name it whatever you want - but add .page.md extension to it e.g. main.page.md, how-to-display-logs-in-linux-systems.page.md; For the purpose of this guide we will name it hello-world.page.md;

Now add content to this file like in the example below. JSON code block holds page configuration and is mandatory. Place actual content after it. You can use GitHub Flavored Markup syntax: json { "slug": "pages/hello-world", "title": "My first Hello World Page in gCMS", "lang": "en", "tags": ["learning","gCMS", "Hello World"], "categories": ["HowTo"], "excerpt": "Perfect page excerpt. Rich in content. With great formatting", "author": "Adam Wojciechowski" "createDate": 1608069061, "menuItemNumber": -1 }

Step 3b: Category page

If you like to add a category listing page to your blog - just create a new file. Name it whatever you want - but add .category.md extension to it, e.g. blog.category.md. For the purpose of this guide we will name it blog.category.md;

Content for category file is much simpler than for page file, and below is an example: json { "slug": "categories", "title": "Categories", "lang": "en", "menuItemNumber": 1 }

Step 3c: Main page

You might need also a start page. Do it in the same way as the category page but change the extension to .mainpage.md, e.g. blog.mainpage.md. For this guide we will create main page named blog.mainpage.md;

Main page file content might be like this: json { "slug": "index", "title": "Home", "lang": "en", "menuItemNumber": 0 }

Step 4: Generate content

Trigger build process:

And that's it! Now you have your blog content generated into static files located in blog/output directory.


All versions of g-cms with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
symfony/config Version ^6.0
symfony/finder Version ^6.0
symfony/console Version ^6.0
symfony/filesystem Version ^6.0
league/commonmark Version ^1.5
twig/twig Version ^3.3
twig/string-extra Version ^3.3
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 webee-online/g-cms contains the following files

Loading the files please wait ....