0.2.0 • Published 1 year ago

@akir4d/angular-on-php v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Angular On PHP (AOP)

This is a comprehensive template for developing an application using Angular and CodeIgniter 4.2. This template may be run on a standard LAMP (PHP 7.4 or highter) server without any special configuration; simply build and copy to the apache folder and enjoy.

npm.io

Pre-Requisites Setup Windows

  • install nodejs
  • install xampp with php 7.4 highter on default folder (c:\xampp)
  • open xampp controls on apache config click to edit php.ini
  • uncomment (remove ";") extension=intl and extension=gd (It is not necessary to run apache)

Build Setup Common

All in one!

Aop comes with the tool aop, that you can start with:

node aop command ...args

eg:

node aop serve

Trick: do node aop install to call aop without node

eg:

aop serve

to use the command as eg: aop build

commandDescription
servestarts Angular and Codeigniter develop serve at http://localhost:4200 and http://localhost:8085
sparkstarts Codeigniter spark utility
ngcalls Angular ng utility
buildbuilds a complete plug and play package on build/ folder
build:othersfor all servers that do not support ".htaccess" this produces a complete plug-and-play package on the build folder, for security reasons, "public" is the only sub-folder you have to share
installwill install aop as command

Human Develop Requirements 😉

  • basic Angular skills
  • basic PHP knowledge

Build Requirements

  • PHP 7.4 or highter
  • node 18 or highter

Destination Server Requirements

  • Apache 2 or Nginx (it could works to others with php support on)
  • PHP 7.4 or highter with intl and gd support

Aop files

FileDescription
aop_modules/versionsrequired in order to make codeigniter auto-update works
aop_modules/versions/composer.phpa Small composer init file
aop_modules/header.phpjust an header for update.php
aop_modules/update.phpThis script executes "Composer Update" straight from the browser during the initial http request to ensure that all framework dependencies and server prerequisites are met. It auto-disables itself after first execution, to re-enable it delete aop_modules/versions/*.txt
aopScripting tool that facilitates development using both framework

Misc

To edit code, I recommend using code visual studio.