Download the PHP package opoink/opoink-app-2 without Composer

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

base-app-2

Is a PHP framework that offers to use VueJs as frontend single site rendering.

Install

php composer create-project opoink/opoink-app-2

If you dont have composer installed on your machine, you can download composer.phar

wget https://getcomposer.org/composer.phar

Then do this command on your terminal

php composer.phar create-project opoink/opoink-app-2

cd to /App/node directory to run npm command

Generate Component

php opoink --generate=component --location=Vendor_Module::pages/home --component-name=my-component
php opoink --g=c --location=Vendor_Module::pages/home --cn=my-component
php opoink --g=c --l=Vendor_Module::pages/home --cn=my-component
php opoink --g=c --l=Vendor_Module --cn=cmy-component

we still use Opoink CLI to generate VueJs component

  1. --generate or --g: the action to do.
  2. --location or --l: is the location where to generate the component
  3. --component-name or --cn: your new component name alpha, - and are the accepted characters. - is just a separator

This will generate a new directory and four files under /App/Ext/Vendor/Module/View/vue/components

MyComponent.ts
MyComponent.component.ts
MyComponent.html
MyComponent.scss

This will also generate vue.components.ts and components.json under /App/Ext/Vendor/Module if this two files exists opoink will update the file to include the newly generated component.

Component Injection

With the help of jQuery Opoink can inject your component to the existing component. either of the same module or another existing module. Simply means that you don't have to make any changes from your other module component, You just have to tell opoink where do you want to inject your new component, and let opoink to do it for you.

in components.json file add inject_to to the component

{
    "component_name": "MyComponent",
    "vendor": "Vendorname",
    "module": "Modulename",
    "location": "Vendorname\/Modulename\/vue\/components\/pages\/home\/MyComponent\/MyComponent.component",
    "inject_to": [
        {
            "component_name": "ExistingComponent",
            "element_id": "element-id-from-the-component-template",
            "inject_type": "prepend",
            "wrapper": "div"
        }
    ]
}
  1. inject_to: is optional means that opoink should inject this component to another with the given name
  2. component_name: required if inject_to is declared
  3. element_id: optional if has value opoink will try to look for this element, if the element is found then use this as reference for the injection, if not your component will be injected either at the top or at the botom of your component template
  4. inject_type: before, after, append, or prepend
    1. before: your component will be injected before the element
    2. after: your component will be injected after the element
    3. append: your component will be injected at the bottom of your component element
    4. prepend: your component will be injected at the top of your component element
  5. wrapper: optional, your component will be wrapped inside this markup then inject.

Router

vue.routes.ts under your Vendor/Module dir

import VRouter from './../../../node/src/core/VueRouter';

const HomeComponent = () => import(/* webpackChunkName: "HomeComponent" */ './View/vue/components/pages/Home/Home.component');
const LoginComponent = () => import(/* webpackChunkName: "LoginComponent" */ './View/vue/components/pages/Login/Login.component');

let routes = [
    { path: '/', component: HomeComponent },
    { path: '/login', component: LoginComponent }
]

routes.forEach(route => {
    VRouter.addRoute(route);
});

Bootsrap Modal Popup

https://docs.google.com/document/d/1Q29Xd-Nt59NIcWGmHAyodMOBWuinn46VMfmR5S4Okxw/edit?usp=sharing


All versions of opoink-app-2 with dependencies

PHP Build Version
Package Version
Requires php Version >=7.3.0
opoink/framework Version >=v1.4.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 opoink/opoink-app-2 contains the following files

Loading the files please wait ...