Download the PHP package asddaniel/concept without Composer
On this page you can find all versions of the php package asddaniel/concept. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download asddaniel/concept
More information about asddaniel/concept
Files in asddaniel/concept
Package concept
Short Description package for conception without code writter
License MIT
Informations about the package concept
Concept Library
The framework for generate code
Concept is a framework for generate code with a json config file. the basis of any software developer is not to repeat oneself (DRY principle), concept is a framework that exploits this principle harshly, namely to write configurable application templates for each new project. the framework is built in php for the moment, but aims to be built in different programming languages, the author is counting on the contributors to build a new way of designing applications by gaining productivity while focusing on the conceptual aspects.
Features
The framework is based on the following concepts:
- creation of commands to generate codes
- exploitation of configuration files in json
- Generating of code and template of application following a json config file
License
GNU General Public License (GPL) version 2
Getting started
concept is based on the creation of application templates that can be generated according to customizable configurations by each developer. in this version Daniel Assani has created a laravel api template. if you are interested, you can contribute by adding another application template or by improving the existing templates
to start using the framework you must clone or fork the example project on github you must start by cloning the starter project on github, this project contains all the elements necessary to load and use the base library that will generate your application. this starter project only contains the tools needed to generate the Laravel api application template the link for the repository is here
composer create-project asddaniel/conception app
this will create a new concept project in a directory "app".
once install the next step is to use basic commands to generate your application inside th e directory app. the project contains a folder named manifest, you will find there a file named LaravelManifest.json, all the configuration of your application must be written in this file, the program will interpret the data above in order to generate the application
Commands and uses
the example configuration file contains an example of the minimal configuration to be done. all parameters are optional, but the data format must be respected to guarantee a functional application example config file { "name":"AppLaravel", "finalize":"true", "output_dir": "test2", "database":{ "db_name":"test", "username":"root", "password":"" }, "models":{ "Article":{"attributes": {"title":"string", "content": "string", "onLine":"boolean"}, "fillable":["title", "content"] }, } }
once the file is configured you can start the command if you are under windows start the command with the word execute
execute
the command Line will ask you to enter a command then you must give :
create laravel-api
if you are under linux or Mac start only the phpcommand (you must ensure that php is installed and it is present in the path whether you are under windows or linux)
php phpcommand create laravel-api
if you have correctly filled your configuration file in json and you have chosen to start the application immediately, the whole application will be generated and you can already go to the browser and test the api endpoints under localhost and port 8000
Dependency
this project uses package of nette "php-generator" as well as nikik's php-parser