I'd suggest researching the difference between anaerobic and aerobic composting, especially the waste products such as gases.
The local landfill down the road has a huge composting complex, turning compost into soil in about 10 days. Shred it (including green waste up to trees), mix in some chicken shit for nitrogen, stick it in huge tubes (perhaps about 100'x8') with huge fans forcing air through the mix, mix in some sand and beautiful soil to sell. No methane and more carbon locked up in the soil.
Dropping off compost (and other recyclables) is free, green waste $40 a ton and garbage $150 a ton with penalties for unsorted garbage. Residents also get up to a yard of soil a year for free, well they have to manually load it.