Download the PHP package modius22/portfolio without Composer

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

Portfolio Generator

Work in progress

Change Log

Version 1.1

Installation

Required PHP 7

or

Basic Usage

Now open MyPortfolio in your favorite IDE and create a meta.json-file in the resources-directory. This file contains all information of your portfolio.

meta.json

The sections-property contains every section of your portfolio. The key is the section title and the value is the section content (=object). For example a about me and skills-section looks like

Open your browser and go to localhost:8090, you should see a heading with the text About me and a paragraph with Hello my name is and a heading with Skills and a listing with Coding and CSS

Note: The default template uses the Bootstrap framework, jQuery and chart.js from CDN. The description-property is parsed by Twig

Section Templates

HTML in JSON-files is a bit messy, so you should use templates. \ First, add the template-property to your About me-section and set it to the path to the template:

Next, create in the resources-directory a directory with the name sections and in this create the about_me.html.twig with this content:

Note: heading is the key of the section-array. It can be overwritten with the heading-property

Variables

You can also add variables in your meta.json sections which you can use in your template. \ For example, add the name-property with your name to the About me section and in your template replace "..." with {{ section.name }}

Note: The section-Variable contains all section-properties

Resources (images, css...)

For additional resources you can add the resources-property in the meta.json and call the resource-twig-function

In your template:

The resource-function accepts 3 parameters:

  1. resource-name (key in resources)
  2. embed the resource (loads the file an writes into the html code)
  3. encode the embedded source as base64 (useful to embed images)

If the resource-path starts with @ the file is loaded from the resources-directory

Custom Template

To override the base template, create a template.custom.html.twig in the resources directory.

German Tutorial

Part 1: http://www.modius-techblog.de/programmierung/eigene-online-visitenkarte-richtig-erstellen/ Part 2: http://www.modius-techblog.de/programmierung/online-visitenkarte-die-erste-sektion-mit-twig/ Part 3: http://www.modius-techblog.de/programmierung/online-visitenkarte-aktueller-job-mit-progress-bar-darstellen/

Example Site

The portfolio from Christian Piazzi (Modius22): http://www.christian.piazzi.org

Contribute

Feel free to fork this repository and create pull-requests


All versions of portfolio with dependencies

PHP Build Version
Package Version
Requires twig/twig Version ^2.3
swiftmailer/swiftmailer Version ^6.0
symfony/routing Version ^4.1
symfony/console Version ^4.1
symfony/http-kernel Version ^4.1
symfony/form 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 modius22/portfolio contains the following files

Loading the files please wait ....