Jump to content
Nabeel

Just a tease

Recommended Posts

Nabeel    1704

Is there a release date? No. What features? We'll see. Building it on Laravel. What's up with v3? I'm not sure. What's up with v2? Super old codebase. I just finished upgrading it to be compatible with PHP 5.6. A lot of saying "wtf what I thinking". 

As a few of you might know, I'm working as a software engineer on flight ops software at GE Aviation, so I've got some ideas for making the entire thing a lot more realistic. I'm thinking this will be a neat way to get this project re-kicked. @servetas is kindly assisting!

  • Like 1

Share this post


Link to post
Share on other sites
Parkho    154
11 hours ago, Nabeel said:

Is there a release date? No. What features? We'll see. Building it on Laravel. What's up with v3? I'm not sure. What's up with v2? Super old codebase. I just finished upgrading it to be compatible with PHP 5.6. A lot of saying "wtf what I thinking". 

As a few of you might know, I'm working as a software engineer on flight ops software at GE Aviation, so I've got some ideas for making the realism a lot more realistic. I'm thinking this will be a neat way to get this project re-kicked. @servetas is kindly assisting!

Perfect, Can I help?!!!!:D:D

Share this post


Link to post
Share on other sites
web541    50
19 hours ago, Nabeel said:

Is there a release date? No. What features? We'll see. Building it on Laravel. What's up with v3? I'm not sure. What's up with v2? Super old codebase. I just finished upgrading it to be compatible with PHP 5.6. A lot of saying "wtf what I thinking". 

As a few of you might know, I'm working as a software engineer on flight ops software at GE Aviation, so I've got some ideas for making the entire thing a lot more realistic. I'm thinking this will be a neat way to get this project re-kicked. @servetas is kindly assisting!

Nice! Finally a version with an up-to-date framework in the works. I've used Laravel in the past (and still do in some side projects) and loved it, so interesting to see how this pans out. Will it be using 5.4? And I'll ask this before you get it a thousand times, will there be a converter from v2/5.5.x?

  • Like 1

Share this post


Link to post
Share on other sites
Nabeel    1704
53 minutes ago, web541 said:

Nice! Finally a version with an up-to-date framework in the works. I've used Laravel in the past (and still do in some side projects) and loved it, so interesting to see how this pans out. Will it be using 5.4? And I'll ask this before you get it a thousand times, will there be a converter from v2/5.5.x?

I'm aiming for 7.x, since 5.x is deprecated. And yeah, there eventually will be a converter. I like it. I've been doing mostly Python and Go for the last few years, so coming back to PHP has been a bit trippy

  • Like 2

Share this post


Link to post
Share on other sites
Bonanza123d    0

Hey Nabeel,

Salutations from the Virtual Airline Operations System project. How far off are you on this project? Maybe we can make our systems compatible.

Just a developer note from us. We have had issues with supporting Laravel on Shared Hosting. That will need to be something to be considered.

Edited by Bonanza123d

Share this post


Link to post
Share on other sites
Nabeel    1704
4 hours ago, Bonanza123d said:

Hey Nabeel,

Salutations from the Virtual Airline Operations System project. How far off are you on this project? Maybe we can make our systems compatible.

Just a developer note from us. We have had issues with supporting Laravel on Shared Hosting. That will need to be something to be considered.

There are a few options for shared hosting, none of them ideal, but I'm kinda debating on whether to fully support that or not. I'll be testing a few work-arounds. Mainly the symlink from whatever the public_html folder is to the laravel public folder. Later cpanel versions support composer as well. I'm leaving to figure that out sometime later

Share this post


Link to post
Share on other sites
Nabeel    1704
18 hours ago, TAV1702 said:

Nice to see you back in action Nabeel. Hope all is well on your end.

Long time no see! Just been super busy, finding little pockets of time here and there to play with Laravel and it's fun. Hope you're doing well!

Share this post


Link to post
Share on other sites
Bonanza123d    0
On 6/19/2017 at 2:33 PM, Nabeel said:

There are a few options for shared hosting, none of them ideal, but I'm kinda debating on whether to fully support that or not. I'll be testing a few work-arounds. Mainly the symlink from whatever the public_html folder is to the laravel public folder. Later cpanel versions support composer as well. I'm leaving to figure that out sometime later

The best method I have found was to move the index.php file to wherever you need to move it and edit the 2 important directories it calls. Here's the index.php file default for Laravel:

 

/*
|--------------------------------------------------------------------------
| Register The Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader for
| our application. We just need to utilize it! We'll simply require it
| into the script here so that we don't have to worry about manual
| loading any of our classes later on. It feels nice to relax.
|
*/

require __DIR__.'/../bootstrap/autoload.php';

/*
|--------------------------------------------------------------------------
| Turn On The Lights
|--------------------------------------------------------------------------
|
| We need to illuminate PHP development, so let us turn on the lights.
| This bootstraps the framework and gets it ready for use, then it
| will load up this application so that we can run it and send
| the responses back to the browser and delight our users.
|
*/

$app = require_once __DIR__.'/../bootstrap/app.php';

This is the index.php file I am implementing for TFDi's Shared Hosting system. Works like a charm inside the public_html folder:

// Notice the VAOS directory change

require __DIR__.'/../VAOS/bootstrap/autoload.php';

$app = require_once __DIR__.'/../VAOS/bootstrap/app.php';

 

What you need to do is change the directories to make sure they hit those bootstrap files and you're completely home free. That's how I got VAOS (aka Laravel) to work on even free hosting. The only thing you would need to then worry about is security. Laravel having it's own public folder is very smart as you cannot directly access any critical files by playing with the URL unlike other CMS systems. This of course as you have experienced first hand can be a pretty daunting problem.

The other issue that would need to be considered is storage. Laravel runs all it's storage through the /storage/app directory however with Artisan you would need to create a symlink for VAs to have a "File Manager" built into the system. This opens up a separate can of worms for another post.

Long story short is that there are many ways to slice the cake.

If you want to chat more, hit me up on my Discord server. Would love to talk about unifying the VA in a way which will allow everyone to benefit from our two systems. https://discord.gg/xWFPf4W

Edited by Bonanza123d

Share this post


Link to post
Share on other sites
Nabeel    1704

For shared hosting, I was thinking that, or better, would be a symlink to the public directory. In cpanel, at least, public_html is already a symlink, so modifying that should be trivial.

Share this post


Link to post
Share on other sites
ProAvia    12

Hoping that many/most of the present freeware modules are included in version 4, as was stated in the teaser for the now defunct version 3. Or at least an easy fix to existing modules to work with the Laravel framework. It would be a shame to lose many of the existing modules many of us are using.

Share this post


Link to post
Share on other sites
Nabeel    1704
On 6/24/2017 at 6:50 PM, ProAvia said:

Hoping that many/most of the present freeware modules are included in version 4, as was stated in the teaser for the now defunct version 3. Or at least an easy fix to existing modules to work with the Laravel framework. It would be a shame to lose many of the existing modules many of us are using.

They probably will have to be rewritten and adapted. But on the upside, it should be much easier and cleaner interfaces for doing so

  • Like 1

Share this post


Link to post
Share on other sites
joeri    362

hey Nabeel  verry long time no see hope all is wel and looking forward to the v4

Share this post


Link to post
Share on other sites
Nabeel    1704
On 7/14/2017 at 1:04 PM, joeri said:

hey Nabeel  verry long time no see hope all is wel and looking forward to the v4

Yes my friend, you too!

Share this post


Link to post
Share on other sites
James142    372

Hot damn, this forum has changed a lot since I've being on it last! good to see phpVMS is gonna be updated!

Share this post


Link to post
Share on other sites
magicflyer    982
7 hours ago, mischka said:

Im wondering though, would the current phpvms addons still work on that new version? 

Probably not. This new phpVMS is based on Laravel which is a whole different framework and set of APIs. But hey...code is code. Someone's gonna find a way to copy/paste things around and make it work.

Edited by magicflyer

Share this post


Link to post
Share on other sites
mischka    191
30 minutes ago, magicflyer said:

Probably not. This new phpVMS is based on Laravel which is a whole different framework and set of APIs. But hey...code is code. Someone's gonna find a way to copy/paste things around and make it work.

so why change to laravel? there's so much knowledge and so many addons/snippets about the current framework it seems mad to throw all that away. 

On all the hosting sites Ive come across you can set your php version to whatever you want, so I'll probably keep running the old phpvms and I imagine I'm not gonna be the only one..

Share this post


Link to post
Share on other sites
servetas    2301

PHP 5 will stop being supported in the next few months. You can of course keep using the older phpVMS version although I believe that some developers will update their modules accordingly. I personally plan to rewrite most of my modules as soon as the new version is ready for release. Also, it will be easier to develop addons considering that laravel is a framework that a lot know.

Share this post


Link to post
Share on other sites
mischka    191

It seems that won't be the case. I asked my provider if they plan to disable any 5.x versions and when, and  this is what came back:

 

Quote

hank you for contacting us.
Various PHP versions come pre-installed with cPanel by default. 
We are not planning to disable old PHP versions unless there would be a huge security problem to keep a certain PHP version alive.

If you have additional questions or requests, feel free to contact us.

 So it seems there is no pressing reason to move existing architecture to php 7

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×