2017 © Pedro Peláez
 

library hos-framework

Framework for Fast Developpement for PHP

image

hos/hos-framework

Framework for Fast Developpement for PHP

  • Sunday, October 23, 2016
  • by mallanic
  • Repository
  • 1 Watchers
  • 0 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Hos

Backend

Installation


apt-get install php7.0-curl php.0-pgsql php7.0-gd php7.0-dev postgresql-9.3 php-pear libyaml-dev yui-compressor ruby2.0-dev pecl install yaml-beta gem install compass echo "extension=yaml.so;" >> /etc/php/7.0/cli/php.ini echo "extension=yaml.so;" >> /etc/php/7.0/apache2/php.ini composer create-project daehl/hos-project

Create BDD

Update schema.xml in app/conf with this Documentation, (*1)

and, (*2)


composer build-bdd vendor/bin/propel model:build --schema-dir 'app/conf/' --output-dir 'src/' --config-dir 'app/tmp/'

Twig

To Be compatible with AngularJS use Bracket variable like this:, (*3)


angular.module('app', []) .config(['$interpolateProvider', function ($interpolateProvider) { $interpolateProvider.startSymbol('[['); $interpolateProvider.endSymbol(']]'); }]);

Image API

In Twig use filter 'image', (*4)


<!-- To Have an Image width 300px of width --> <img src="<% 'image/sample.png' | image({w: 300})/>

Or directly with url 'image/logo.png?w=300' to get Image with width of 300px and respect Aspect/Ratio, (*5)

More, (*6)

Improve Performance

Set app/tmp & app/log to memory (tmpfs), (*7)

    mount -t tmpfs -o size=1024 tmpfs app/log
    mount -t tmpfs -o size=1024 tmpfs app/tmp

The Versions

23/10 2016

dev-master

9999999-dev https://github.com/daehl/hos-framework

Framework for Fast Developpement for PHP

  Sources   Download

CC0 1.0

by Maxime Allanic

framework daehl hos