This would work, but I doubt that it would be a hub, more like a switch, especially if it is running gigabit. You would also need either power injectors or have a switch that has poe ports on board.
You may just have to statically set the vlan, but apart from that things should work.
Is there any reason why they need to be on gig ports given that the phones themselves only have 100 meg ports on board?