{"id":20677788,"url":"https://github.com/clivern/lwt","last_synced_at":"2026-04-27T01:31:42.646Z","repository":{"id":56781286,"uuid":"103417810","full_name":"Clivern/LWT","owner":"Clivern","description":":wolf: Simple ERP Application Skeleton In Symfony 3.3.9.","archived":false,"fork":false,"pushed_at":"2025-11-21T07:44:40.000Z","size":1882,"stargazers_count":1,"open_issues_count":11,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-11-21T09:22:32.904Z","etag":null,"topics":["erp","erp-application","lwt","symfony","symfony-boilerplate","symfony-skeleton","symfony3","symfony3-bundle"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Clivern.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-09-13T15:33:05.000Z","updated_at":"2022-08-15T10:43:04.000Z","dependencies_parsed_at":"2022-08-16T02:50:22.626Z","dependency_job_id":"1f39a2b9-7f7f-4259-83fa-93c1ebcdc086","html_url":"https://github.com/Clivern/LWT","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Clivern/LWT","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clivern%2FLWT","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clivern%2FLWT/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clivern%2FLWT/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clivern%2FLWT/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Clivern","download_url":"https://codeload.github.com/Clivern/LWT/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clivern%2FLWT/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32319559,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"ssl_error","status_checked_at":"2026-04-26T23:26:25.802Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["erp","erp-application","lwt","symfony","symfony-boilerplate","symfony-skeleton","symfony3","symfony3-bundle"],"created_at":"2024-11-16T21:17:07.028Z","updated_at":"2026-04-27T01:31:42.625Z","avatar_url":"https://github.com/Clivern.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"LWT\n===\n\n:wolf: Simple ERP Application Skeleton In Symfony 3.3.9.\n\n*Current version: 1.0.0*\n\n[![Build Status](https://travis-ci.org/Clivern/LWT.svg?branch=master)](https://travis-ci.org/Clivern/LWT)\n\nInstallation\n------------\n\nIn order to run this app do the following:\n\n### 1-Minute Install\n\n- Get the application code and install php dependencies and node packages.\n```bash\ngit clone https://github.com/Clivern/LWT.git lwt\ncd lwt\ncomposer install\n# You can ignore node packages installation if you will not edit CSS \u0026 JS Files\nnpm install\n```\n\n- Open `app/config/parameters.yml` and insert your MySQL database credentials. Let's say it will be look like this:\n```yaml\nparameters:\n    database_host: 127.0.0.1\n    database_port: null\n    database_name: homestead\n    database_user: homestead\n    database_password: secret\n    mailer_transport: smtp\n    mailer_host: 127.0.0.1\n    mailer_user: null\n    mailer_password: null\n    secret: ThisTokenIsNotSoSecretChangeIt\n```\n\n- Run the following command to build database tables\n```bash\nphp bin/console doctrine:schema:update --force\n```\n\n- Run the following command to seed our database with one user and default configs\n```bash\nphp bin/console doctrine:fixtures:load\n```\n\n- We are ready to run our application\n```bash\nphp bin/console server:run\n```\n\nOpen your browser and access the `http://127.0.0.1:8000`\n\n*Please Note That* You can login with `clivern/clivern` As we already imported that user in previous steps.\n\n\n### With Vagrant\n\nPlease note that `vagrant` need a provider in order to run the `VM`. In this project, I use `VirtualBox` as provider.\nAfter you have `vagrant` and `VirtualBox` up and running, do the following steps:\n\n- Get the application code and install php dependencies and node packages.\n```bash\ngit clone https://github.com/Clivern/LWT.git lwt\ncd lwt\ncomposer install\n# You can ignore node packages installation if you will not edit CSS \u0026 JS Files\nnpm install\nvagrant up\n```\n\n- Open `app/config/parameters.yml` and insert your MySQL database credentials. Let's say it will be look like this (Also look at `app/config/parameters.yml.vagrant`):\n```yaml\nparameters:\n    database_host: 127.0.0.1\n    database_port: null\n    database_name: homestead\n    database_user: homestead\n    database_password: secret\n    mailer_transport: smtp\n    mailer_host: 127.0.0.1\n    mailer_user: null\n    mailer_password: null\n    secret: ThisTokenIsNotSoSecretChangeIt\n```\n\n- After Vagrant build and provision your machine, login into this machine to do some configs (build database tables and seed our database).\n```bash\nvagrant ssh\ncd lwt\nphp bin/console doctrine:schema:update --force\nphp bin/console doctrine:fixtures:load\n```\n\n- Open your browser and access the `http://192.168.10.10`.\n\n- Vagrant use `192.168.10.10` as project IP, so we need to redirect all requests coming to `lwt.com` to that IP. So add the following to your `/etc/hosts` file.\n```bash\n192.168.10.10       lwt.com\n```\n\n- To Stop vagrant machine, run the following\n```bash\nvagrant halt\n```\n\nPlease feel free to check `Homestead.yaml` file in case you need to customize your vagrant machine.\n\n\n### With Docker\n\n- Get the application code and node packages.\n```bash\ngit clone https://github.com/Clivern/LWT.git lwt\ncd lwt\n# You can ignore node packages installation if you will not edit CSS \u0026 JS Files\nnpm install\n```\n\n- Then run our docker containers\n```bash\ndocker-compose build\ndocker-compose up -d\n```\n\n- Then install our php dependencies with composer.\n```bash\ndocker exec -it lwt_php bash -c \"composer install \u0026\u0026 chown -R www-data /www/var\"\n```\n\n- Open `app/config/parameters.yml` and insert your MySQL database credentials. Let's say it will be look like this (Also look at `app/config/parameters.yml.docker`):\n```yaml\nparameters:\n    database_host: lwt_mysql\n    database_port: 3306\n    database_name: homestead\n    database_user: homestead\n    database_password: secret\n    mailer_transport: smtp\n    mailer_host: 127.0.0.1\n    mailer_user: null\n    mailer_password: null\n    secret: ThisTokenIsNotSoSecretChangeIt\n```\n\n- Access our PHP container to build database tables and seed these tables\n```bash\ndocker exec -it lwt_php bash\nphp bin/console doctrine:schema:update --force\nphp bin/console doctrine:fixtures:load\n```\n\n- Open your browser and access the `http://127.0.0.1:8001/`.\n\n- Also you can add `http://lwt.dev` to your `/etc/hosts` file.\n```bash\n127.0.0.1:8001       lwt.dev\n```\n\n- To Check our containers, use the following command:\n```bash\ndocker-compose ps\n```\n\n- To stop our containers\n```bash\ndocker-compose down\n```\n\n[*Please check these docs to manage docker as a non-root user.*](https://docs.docker.com/engine/installation/linux/linux-postinstall/) because if it runs with the root user, you will have to use `sudo ...` in all previous commands.\n\n\n### Alternative\n\nIn case you have A LAMP environment on your machine, Please follow the following steps:\n\n- Get the application code and install php dependencies and node packages.\n```bash\ngit clone https://github.com/Clivern/LWT.git lwt\ncd lwt\ncomposer install\n# You can ignore node packages installation if you will not edit CSS \u0026 JS Files\nnpm install\n```\n\n- Open `app/config/parameters.yml` and insert your MySQL database credentials. Let's say it will be look like this:\n```yaml\nparameters:\n    database_host: 127.0.0.1\n    database_port: null\n    database_name: homestead\n    database_user: homestead\n    database_password: secret\n    mailer_transport: smtp\n    mailer_host: 127.0.0.1\n    mailer_user: null\n    mailer_password: null\n    secret: ThisTokenIsNotSoSecretChangeIt\n```\n\n- Run the following command to build database tables\n```bash\nphp bin/console doctrine:schema:update --force\n```\n\n- Run the following command to seed our database with one user and default configs\n```bash\nphp bin/console doctrine:fixtures:load\n```\n\n- You need to create a [virtual host](http://symfony.com/doc/current/setup/web_server_configuration.html) for this project and have it always running.\n```\n\u003cVirtualHost *:80\u003e\n    ServerAdmin admin@lwt.com\n    ServerName lwt.com\n    ServerAlias www.lwt.com\n    DocumentRoot /var/www/lwt/web\n    ErrorLog ${APACHE_LOG_DIR}/error.log\n    CustomLog ${APACHE_LOG_DIR}/access.log combined\n        \u003cDirectory /var/www/lwt/web\u003e\n            Options Indexes FollowSymLinks MultiViews\n            AllowOverride All\n            Order allow,deny\n            allow from all\n        \u003c/Directory\u003e\n\u003c/VirtualHost\u003e\n```\n\n- Please don't forgot to add the suitable folder permissions for example\n```bash\nsudo chown -R clivern:www-data lwt\nsudo chown -R 775 lwt\n```\n\nAlso Don't forget to add lwt.com on your hosts file\n```\n127.0.1.6       lwt.com\n```\n\nNow when we visit `lwt.com` it should work!\n\nREST API\n--------\nApplication has a REST API to be used by frontend so you can use these APIs to build Single Page Application or even consume these APIs from other application or service.\n\n- To get your API Key, Login to your profile `clivern/clivern` and you can find your API Key in profile page.\n\n- To create a server:\n```bash\ncurl --request POST --url http://lwt.com/api/v1/server --header 'X-AUTH-TOKEN: api_token_here' --data 'name=R234\u0026brand=HP\u0026asset_id=123\u0026price=200.35'\n```\n\n- To get your servers:\n```bash\ncurl --request GET --url http://lwt.com/api/v1/server --header 'X-AUTH-TOKEN: api_token_here'\n```\n\n- To get server with id:\n```bash\ncurl --request GET --url http://lwt.com/api/v1/server/{server_id} --header 'X-AUTH-TOKEN: api_token_here'\n```\n\n- To delete server with id:\n```bash\ncurl --request DELETE --url http://lwt.com/api/v1/server/{server_id} --header 'X-AUTH-TOKEN: api_token_here'\n```\n\n- To get Server Rams:\n```bash\ncurl --request GET --url http://lwt.com/api/v1/server/{server_id}/ram --header 'X-AUTH-TOKEN: api_token_here'\n```\n\n- To get Server Ram:\n```bash\ncurl --request GET --url http://lwt.com/api/v1/server/{server_id}/ram/{ram_id} --header 'X-AUTH-TOKEN: api_token_here'\n```\n\n- To create Server Ram:\n```bash\ncurl --request POST --url http://lwt.com/api/v1/server/{server_id}/ram --header 'X-AUTH-TOKEN: api_token_here' --data 'type=DDR3\u0026size=2'\n```\n\n- To delete Server Ram:\n```bash\ncurl --request DELETE --url http://lwt.com/api/v1/server/{server_id}/ram/{ram_id} --header 'X-AUTH-TOKEN: api_token_here'\n```\n\n- To get current refresh token:\n```bash\ncurl --request GET --url http://lwt.com/api/v1/refresh_token --header 'X-AUTH-TOKEN: api_token_here'\n```\n\n- To Get your new API token in case it is expired:\n```\ncurl --request POST --url http://lwt.com/api/v1/api_token --header 'X-AUTH-TOKEN: api_token_here' --data 'refresh_token=sgshdhd..'\n```\n\nDeploy The Application\n----------------------\nIn order to run and deploy this application on production server, Please do the following during installation.\n\n- Check your server requirements.\n```bash\nphp bin/symfony_requirements\n```\n\n- Install/Update your vendors and It is required to provide your database credentials.\n```bash\ncomposer install --no-dev --optimize-autoloader\n```\n\n- Clear your Symfony Cache\n```bash\nphp bin/console cache:clear --env=prod --no-debug --no-warmup\nphp bin/console cache:warmup --env=prod\n```\n\n- Build your database tables and do seeding.\n```bash\nphp bin/console doctrine:schema:update --force\nphp bin/console doctrine:fixtures:load\n```\n\n- In case you work with LAMP Server, you will need to configure your apache virtual host.\n```\n\u003cVirtualHost *:80\u003e\n    ServerAdmin admin@lwt.com\n    ServerName lwt.com\n    ServerAlias www.lwt.com\n    DocumentRoot /var/www/lwt/web\n    ErrorLog ${APACHE_LOG_DIR}/error.log\n    CustomLog ${APACHE_LOG_DIR}/access.log combined\n        \u003cDirectory /var/www/lwt/web\u003e\n            Options Indexes FollowSymLinks MultiViews\n            AllowOverride All\n            Order allow,deny\n            allow from all\n        \u003c/Directory\u003e\n\u003c/VirtualHost\u003e\n```\n\n- Please don't forgot to add the suitable folder permissions for example\n```bash\nsudo chown -R clivern:www-data lwt\nsudo chown -R 775 lwt\n```\n\n*For More Info*, Please [check symfony docs](https://symfony.com/doc/current/deployment.html)\n\n\nMisc\n----\n\n### Notes\n- If the *npm install* command fails or hangs, Do the following.\n```\nsudo ln -s /usr/bin/nodejs /usr/bin/node\n```\n\n- To compile changes performed to JS or CSS code in `resources/assets/` dir, run the following command:\n```\nnpm run dev\n```\n\n### Testing\n\nTo run test cases \u0026 get test coverage reports run the following command in app root\n```bash\n./vendor/bin/simple-phpunit --coverage-text=./coverage.txt --coverage-html ./coverage\n```\n\nor to view the coverage report\n```bash\n./vendor/bin/simple-phpunit --coverage-text --coverage-html ./coverage\n```\n\nPlease note that, you need `xdebug` in order to get coverage reports.\n\n### Changelog\n\nVersion 1.0.0:\n```\nInitial Release.\n```\n\n### Acknowledgements\n\n© 2017, Clivern. Released under the [MIT License](http://www.opensource.org/licenses/mit-license.php).\n\n**LWT** is authored and maintained by [@clivern](http://github.com/clivern).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclivern%2Flwt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclivern%2Flwt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclivern%2Flwt/lists"}